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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Samba - samba-technical mailing list
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!

Samuel.

0001-libcli-smb-Parse-primary-domain-from-session-setup.patch (4K) Download Attachment