Netbios name %m not always correct

Andrew Bartlett abartlet at
Sun Oct 5 07:11:12 GMT 2003

On Sun, 2003-10-05 at 16:54, Richard Sharpe wrote:
> On Fri, 3 Oct 2003, M A Young wrote:
> > We have just moved a server over to Samba 3.0.0, and it seems that %m,
> > which should return the netbios name often returns the ip number of the
> > host instead. This is a problem, (apart from making the logging more
> > confusing), since we use smbclient to provide responses to certain
> > actions, and if %m isn't returning the correct netbios name I don't think
> > the message gets through.
> > 
> > Has anyone else seen this problem or know how to fix it?
> Yes, this will be the case when the client uses a NetBIOS-less SMB 
> sessions (on port 445) which most clients do these days :-(
> You will need to use some other macro. Perhaps %U or something like that.

Well, we do pick up the %m name from NTLMSSP, even on 445 - but kerberos
and some anonymous logins kills that.  That's why it's not an 'always'

Andrew Bartlett

Andrew Bartlett                                 abartlet at
Manager, Authentication Subsystems, Samba Team  abartlet at
Student Network Administrator, Hawker College   abartlet at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url :

More information about the samba-technical mailing list