Re: [Samba] any reliable way to discover Windows hostname over SMB2+?
- Date: Fri, 14 Jul 2017 08:33:16 +1200
- From: Andrew Bartlett via samba <samba@xxxxxxxxxxxxxxx>
- Subject: Re: [Samba] any reliable way to discover Windows hostname over SMB2+?
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@xxxxxxxxxxxxxxx> 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 184.108.40.206 -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 http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
To unsubscribe from this list go to the following URL and read the