+1
−0
+16
−13
Loading
samLogonNetwork() runs the full flow against a domain controller and is
confirmed end to end against a real Samba 4.22 AD DC (strict schannel):
DCE/RPC bind, netr_ServerReqChallenge + netr_ServerAuthenticate3 (AES
session key, server credential checked), a netsec schannel alter_context,
then a sealed netr_LogonSamLogonEx with a NetlogonNetworkInformation NTLMv2
logon -> NT_STATUS 0 and the user session key. The NetworkInfo NDR is built
field by field (byte-identical to a captured reference), the netsec AES
sign+seal follows samba's schannel_sign.c, and the request carries the
DCE/RPC SEC_VT verification trailer. Built on libnetplus.
Still to wire: endpoint-mapper lookup of the NETLOGON port for real AD
(the test pins Samba's rpc port), the NTLM command on adconnectd's socket,
and the sharedd side for the kernel's KSMBD_EVENT_NTLM_AUTHEN_REQUEST.
Co-Authored-By:
Claude Opus 4.8 <noreply@anthropic.com>