Luke Pittman
2007-Nov-09 18:12 UTC
[Samba] Mapped username then gets mapped to "Anonymous"
Hi Everyone, I have setup a Samba share to work on our local network with a username map to accommodate Windows XP usernames with spaces, but it seems that Samba maps the username correctly but then immediately changes it to an Anonymous request. Am I missing something? Clip from log file: -------------------------------------------------------------- [2007/11/09 09:58:49, 3] smbd/sesssetup.c:reply_sesssetup_and_X(995) Domain=[OFFICE] NativeOS=[Windows 2002 Service Pack 2 2600] NativeLanMan=[Windows 2002 5.1] PrimaryDomain=[] [2007/11/09 09:58:49, 3] smbd/sesssetup.c:reply_sesssetup_and_X(1010) sesssetupX:name=[OFFICE]\[Luke]@[office] [2007/11/09 09:58:49, 3] smbd/map_username.c:map_username(54) Mapped user Luke to lpittman [2007/11/09 09:58:49, 3] smbd/sesssetup.c:check_guest_password(136) Got anonymous request [2007/11/09 09:58:49, 3] auth/auth.c:check_ntlm_password(221) check_ntlm_password: Checking password for unmapped user []\[]@[] with the new password interface [2007/11/09 09:58:49, 3] auth/auth.c:check_ntlm_password(224) check_ntlm_password: mapped user is: []\[]@[] -------------------------------------------------------------- My smb.conf file: -------------------------------------------------------------- [global] #workgroup = Hewlettpackard workgroup = C22 server string netbios name = Server2 security = share wins support = no log level = 1 load printers = no log file = /var/log/samba/%m.log log level = 3 username map = /etc/samba/smbusers os level = 2 time server = yes encrypt passwords = yes # log size in Kb max log size = 500 [Raid0] public = no path = /raid0 valid users = cflatman read only = no writeable = yes [Raid1] public = no path = /raid1 valid users = cflatman read only = no writeable = yes -------------------------------------------------------------- Any ideas/help/advice/links would be great - I've been searching for hours and have not found anything. Thanks a bunch! Luke Pittman
Luke Pittman
2007-Nov-13 17:30 UTC
[Samba] Mapped username then gets mapped to "Anonymous"
Hey Everyone - I apologize if this is a duplicate - however I received a notification that the email could not be delivered, so I'll try again! --- Hi Everyone, I have setup a Samba share to work on our local network with a username map to accommodate Windows XP usernames with spaces, but it seems that Samba maps the username correctly but then immediately changes it to an Anonymous request. Am I missing something? Clip from log file: -------------------------------------------------------------- [2007/11/09 09:58:49, 3] smbd/sesssetup.c:reply_sesssetup_and_X(995) Domain=[OFFICE] NativeOS=[Windows 2002 Service Pack 2 2600] NativeLanMan=[Windows 2002 5.1] PrimaryDomain=[] [2007/11/09 09:58:49, 3] smbd/sesssetup.c:reply_sesssetup_and_X(1010) sesssetupX:name=[OFFICE]\[Luke]@[office] [2007/11/09 09:58:49, 3] smbd/map_username.c:map_username(54) Mapped user Luke to lpittman [2007/11/09 09:58:49, 3] smbd/sesssetup.c:check_guest_password(136) Got anonymous request [2007/11/09 09:58:49, 3] auth/auth.c:check_ntlm_password(221) check_ntlm_password: Checking password for unmapped user []\[]@[] with the new password interface [2007/11/09 09:58:49, 3] auth/auth.c:check_ntlm_password(224) check_ntlm_password: mapped user is: []\[]@[] -------------------------------------------------------------- My smb.conf file: -------------------------------------------------------------- [global] #workgroup = Hewlettpackard workgroup = C22 server string netbios name = Server2 security = share wins support = no log level = 1 load printers = no log file = /var/log/samba/%m.log log level = 3 username map = /etc/samba/smbusers os level = 2 time server = yes encrypt passwords = yes # log size in Kb max log size = 500 [Raid0] public = no path = /raid0 valid users = cflatman lpittman read only = no writeable = yes [Raid1] public = no path = /raid1 valid users = cflatman lpittman read only = no writeable = yes -------------------------------------------------------------- Any ideas/help/advice/links would be great - I've been searching for hours and have not found anything. Thanks a bunch! Luke Pittman
On Tuesday 13 November 2007, Luke Pittman wrote:> Samba maps the username correctly but then immediately changes it to an > Anonymous request. ?Am I missing something?As your smbusers file is part of the equation you may have wanted to post at least part of it. Did you quote the usernames with spaces in /etc/samba/smbusers? As in: lpittman = "Luke Pittman" -- Chris