[PATCH] libcli/smb: Parse primary domain from session setup

Samuel Cabrero scabrero at suse.de
Mon Sep 11 16:31:44 UTC 2017

On samba >= 4.6.0 the domain name shown on smbclient output is wrong
and shows the netbios server name instead of the server's workgroup.
Also, the 'net rap server domain' command does not work because the
server's netbios name is used instead of the workgroup in the
NetServerEnum2 request.

The attached patch reads the primary domain from session setup response
for NT1 protocol with CAP_EXTENDED_SECURITY.

Review and comments appreciated!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libcli-smb-Parse-primary-domain-from-session-setup.patch
Type: text/x-patch
Size: 3704 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170911/421f99b1/0001-libcli-smb-Parse-primary-domain-from-session-setup.bin>

More information about the samba-technical mailing list