[Samba] Netbios alias oddities

Marc Schmitt marc.schmitt at inf.ethz.ch
Wed Mar 19 17:02:35 GMT 2003


Hello all,

We see a strange problem with netbios aliases. Here the setup:

Linux (RedHat 7.3) samba server (2.2.7a) that is running with 3 netbios 
aliases, A, B and C, where A is the netbios name of the server. For each 
netbios alias, a share scratch is defined that is public and contains a 
file named according to its netbios alias.

Using smbclient, this setup works like a flaw:

`smbclient //A/scratch` will lead me to the file A
`smbclient //B/scratch` will lead me to the file B
`smbclient //C/scratch` will lead me to the file C

It works, independent of being in the same network as the server or not.
The fun starts when we try it from Windows platforms (2000 and XP). On 
some clients

\\B\scratch will lead me to file A
\\C\scratch will lead me to file A

Looking at the log on the server, I see why (in case of \\C):

[2003/03/19 17:48:18, 2] lib/access.c:check_access(327)
   Allowed connection from  (x.x.x.x)
[2003/03/19 17:48:18, 2] smbd/reply.c:reply_special(91)
   netbios connect: name1=A          name2=W2KCLIENT
[2003/03/19 17:48:18, 2] smbd/reply.c:reply_special(110)
   netbios connect: local=A remote=w2kclient

Somehow, name1 (which is %L) becomes A instead of C. This is not true 
for all Windows clients, on some machines it works, \\C\scratch will 
show me file C.

Could someone tell me what this depends on, please?

TIA

Regards,
	Marc



More information about the samba mailing list