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

Andrew Bartlett abartlet at samba.org
Thu Jul 13 20:33:16 UTC 2017

On Fri, 2017-07-14 at 08:22 +1200, Jason Haar via samba wrote:
> 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 -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...

I would suggest starting with using Samba 4.7rc2.  

Andrew Bartlett

Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba

More information about the samba mailing list