s4:auth: a simple bind uses the DCs name as workstation
commit31db704882bbcd569c2abb764ac1d3691ee0a267
authorStefan Metzmacher <metze@samba.org>
Wed, 2 Mar 2022 13:32:41 +0000 (2 14:32 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 10 Mar 2022 03:16:35 +0000 (10 03:16 +0000)
treee05ac2bdd0df390498a988044095b6c7674aae50
parent5c04c01354944fc3a64bb109bf3e9bf89086cc6f
s4:auth: a simple bind uses the DCs name as workstation

I've seen that in LogonSamLogonEx request triggered
by a simple bind with a user of a trusted domain
within the same forest. Note simple binds don't
work with users for another forest/external domain,
as the DsCrackNames call on the bind_dn fails.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13879
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14641

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/auth/ntlm/auth_simple.c