s4:nbt_server: simulate nmbd and provide unexpected handling
authorStefan Metzmacher <metze@samba.org>
Wed, 14 Feb 2024 11:34:48 +0000 (12:34 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 5 Apr 2024 12:24:42 +0000 (12:24 +0000)
commit796f33c05a0ca337b675b5d4d127f7c53b22528f
treeda3a7ccdd33b5c1ee6769cc55b2fee3f0347ac5c
parentbfb10774b65af65f9c438a5d3e87529b1fcf46a1
s4:nbt_server: simulate nmbd and provide unexpected handling

This is needed in order to let nbt_getdc() work against
another AD DC and get back a modern response with
DNS based names. Instead of falling back to
the ugly name_status_find() that simulates just
an NETLOGON_SAM_LOGON_RESPONSE_NT40 response.

This way dsgetdcname() can work with just the netbios
domain name given and still return an active directory
response.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/target/Samba4.pm
source4/nbt_server/dgram/request.c
source4/nbt_server/interfaces.c
source4/nbt_server/nbt_server.c
source4/nbt_server/nbt_server.h
source4/nbt_server/wscript_build