Netbios name %m not always correct
M A Young
m.a.young at durham.ac.uk
Wed Oct 8 11:48:54 GMT 2003
On Sat, 4 Oct 2003, 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.
I am not sure that helps with message notifications, since I believe you
need to know the netbios name before the host will accept the message.
More information about the samba-technical