[Samba] Re: Strange Usermapping problem with 3.0.23b

Matthias Schündehütte msch at snafu.de
Fri Sep 1 21:24:16 GMT 2006


On 2006-08-29 18:21:18 +0200, "Gerald (Jerry) Carter" <jerry at samba.org> said:

> Matthias Schuendehuette wrote:
> 
>> <DOMAIN>\<WinUser> is mapped to <UnixUser>
>> <DOMAIN>\<UnixUser> is mapped to <DefaultUser>
>> 
>> (I have a line "<DefaultUser> = *" in my 'smbusers.map'-file)
> 
> I just fixed this for 3.0.23c.

Sorry Jerry, but this does *not* work for me:


[2006/09/01 08:41:27, 10] smbd/sesssetup.c:reply_spnego_kerberos(250)
  Mapped to [WW004] (using PAC)
[2006/09/01 08:41:27, 4] smbd/map_username.c:map_username(111)
  Scanning username map /usr/local/private/smbusers.map
[2006/09/01 08:41:27, 10] smbd/password.c:user_in_list(464)
  user_in_list: checking user WW004\SchuendeMa in list
[2006/09/01 08:41:27, 10] smbd/password.c:user_in_list(469)
  user_in_list: checking user |WW004\SchuendeMa| against |WW004\SchuendeMa|
[2006/09/01 08:41:27, 3] smbd/map_username.c:map_username(155)
  Mapped user WW004\SchuendeMa to matthias
[2006/09/01 08:41:27, 5] lib/username.c:Get_Pwnam_alloc(131)
  Finding user matthias
[2006/09/01 08:41:27, 5] lib/username.c:Get_Pwnam_internals(75)
  Trying _Get_Pwnam(), username as lowercase is matthias
[2006/09/01 08:41:27, 5] lib/username.c:Get_Pwnam_internals(108)
  Get_Pwnam_internals did find user [matthias]!
[2006/09/01 08:41:27, 6] param/loadparm.c:lp_file_list_changed(2998)
  lp_file_list_changed()
  file /usr/local/etc/smb.conf -> /usr/local/etc/smb.conf  last 
mod_time: Thu Aug 24 21:17:59 2006

[2006/09/01 08:41:27, 4] smbd/map_username.c:map_username(111)
  Scanning username map /usr/local/private/smbusers.map
[2006/09/01 08:41:27, 10] smbd/password.c:user_in_list(464)
  user_in_list: checking user WW004\matthias in list
[2006/09/01 08:41:27, 10] smbd/password.c:user_in_list(469)
  user_in_list: checking user |WW004\matthias| against |WW004\SchuendeMa|
[2006/09/01 08:41:27, 3] smbd/map_username.c:map_username(155)
  Mapped user WW004\matthias to smb
[2006/09/01 08:41:27, 5] lib/username.c:Get_Pwnam_alloc(131)
  Finding user smb


As you see, my WindowsAccount "WW004\SchuendeMa" ist still mapped twice:

First to my unix account 'matthias' and afterwards as "WW004\matthias" 
(which is plain wrong!) to the unix account 'smb', which is the 
fall-though default user.

This happens with your pre-23c-patch *and* your last usermapping patch applied.

If you need the complete logfiles again, please let me know.

Matthew


-- 
Ciao/BSD - Matthias

Matthias Schuendehuette <msch [at] snafu.de>, Berlin (Germany)
PGP-Key at <pgp.mit.edu> and <wwwkeys.de.pgp.net> ID: 0xDDFB0A5F




More information about the samba mailing list