Weird login problem !!

werner maes werner.maes at cc.kuleuven.ac.be
Thu Aug 10 10:11:42 GMT 2000


Hello,

I have discovered what seems to me an unlogic issue in Samba.

I have a Samba logon server with login scripts based on machine names
(%m.bat).
This is what happens when I make a connection as a regular user.

[2000/08/07 10:23:11, 1] smbd/service.c:make_connection(550)
  testpc (10.33.6.247) connect to service FSK as user m2000944
(uid=27419, gid=27419) (pid 18902)

Identification, computer name = testpc, ip-address 10.33.6.247
Logon script %m.bat : the net use commando's take quite some
time.(batch-file testpc.bat)
I log on as user m2000944 (uid 27419) with the password.
smbstatus gives the right username and group id.

But see what happens if I change my computer name from "testpc" to
"pc477" and log on as the same user.

[2000/08/09 11:37:15, 1] smbd/service.c:make_connection(550)
  pc477 (10.33.6.247) connect to service FSK as user pc477 (uid=27419,
gid=27419) (pid 23273)

Identification, computer name = pc477, ip-address 10.33.6.247
Logon script %m.bat : the net use commando's are fast !! (batch-file
pc477.bat = testpc.bat)
I log on as user m2000944 (uid 27419) with the password.
As you can see, samba wrongly reports that I am user pc477 (which also
exists in my password set) but
still gets the right uid and gid. This is very strange to me.
smbstatus reports the wrong user name.
Problem is that it works faster this way.

Conclusion: if I set the "computer name = user name of an existing user"
and use login scripts based on
machine names, strange things occur. If you logon, samba seems to take
as username the computername
if this name exist in the password set.

Does anybody has any idea?

Werner Maes
KULeuven





More information about the samba mailing list