[Samba] any reliable way to discover Windows hostname over SMB2+?

Jason Haar jason_haar at trimble.com
Thu Jul 13 20:22:24 UTC 2017


On Fri, Jul 14, 2017 at 4:04 AM, Andrew Walker via samba <
samba at lists.samba.org> wrote:

> I forgot to mention in the previous email that smbclient works over SMB2.
> You just have increase the max protocol by adding the flag "-m SMB2".
>
> I.e. "smbclient -m SMB2 -L 1.2.3.4 -N -d10 2>&1|grep AvNbComputerName"
>

Doesn't work for me... This is  samba-3.6.23-43.el6_9.x86_64 on CentOS6 and
in my opinion the "-m SMB2" option shows no evidence that it does anything.
If you point smbclient-3 at a Windows system that has SMB1 disabled, it
does not work - irrespective of the "-m" option. If you point smbclient-4
at the same server, it doesn't work either (default still "-m NT1"), but if
you give it "-m SMB2" it works fine

I know smbclient-v3 claims it supports SMB2, but that isn't the case at
least with the CentOS/RHEL 6 version...

-- 
Cheers

Jason Haar
Information Security Manager, Trimble Navigation Ltd.
Phone: +1 408 481 8171
PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1


More information about the samba mailing list