[Samba] Samba 3.0beta 2 and LDAP

Lionel Porcheron lionel.porcheron at wanadoo.fr
Tue Jul 15 09:34:20 GMT 2003


Hello,

I am trying to set up a Samba 3.0 PDC with a OpenLDAP Directory as a
backend.

Everything seems to work correctly exccept that i don't get the good uid
and gid for the user. Here is what i get in my log when i am in debug mode
(debug level = 10 in smb.conf).

I do not understand why my sambaSID (2560, that is to say 780*2+1000) is
translated in uid=10000 (which is the lower born of the idmap uid that i
set because the server was complaining). In the same way, my primary gid
is not correct (1000, the lower born of idmap gid range).

All the others informations (displayname, others groups) return by the
LDAP are correct. Does anybody have an idea ?

Thans

Lionel

====== extract from log.smbd =====

  NT user token of user S-1-5-21-1803626230-304981202-1883109886-2560
  contains 20 SIDs
  SID[  0]: S-1-5-21-1803626230-304981202-1883109886-2560
  SID[  1]: S-1-5-21-1803626230-304981202-1883109886-1000
  SID[  2]: S-1-1-0
  SID[  3]: S-1-5-2
  SID[  4]: S-1-5-11
  SID[  5]: S-1-5-21-3096598341-999903252-796962905-5003
  SID[  6]: S-1-5-21-3096598341-999903252-796962905-7003
  SID[  7]: S-1-5-21-3096598341-999903252-796962905-9003
  SID[  8]: S-1-5-21-3096598341-999903252-796962905-9005
  SID[  9]: S-1-5-21-3096598341-999903252-796962905-9007
  SID[ 10]: S-1-5-21-3096598341-999903252-796962905-41005
  SID[ 11]: S-1-5-21-3096598341-999903252-796962905-41009
  SID[ 12]: S-1-5-21-3096598341-999903252-796962905-11021
  SID[ 13]: S-1-5-21-3096598341-999903252-796962905-9009
  SID[ 14]: S-1-5-21-3096598341-999903252-796962905-3013
  SID[ 15]: S-1-5-21-3096598341-999903252-796962905-9011
  SID[ 16]: S-1-5-21-3096598341-999903252-796962905-9013
  SID[ 17]: S-1-5-21-3096598341-999903252-796962905-3011
  SID[ 18]: S-1-5-21-3096598341-999903252-796962905-11025
  SID[ 19]: S-1-5-21-3096598341-999903252-796962905-11047
[2003/07/15 11:04:44, 5] auth/auth_util.c:debug_unix_user_token(494)
  UNIX token of user 10000
  Primary group is 10000 and contains 16 supplementary groups
  Group[  0]: 10000
  Group[  1]: 2001
  Group[  2]: 3001
  Group[  3]: 4001
  Group[  4]: 4002
  Group[  5]: 4003
  Group[  6]: 20002
  Group[  7]: 20004
  Group[  8]: 5010
  Group[  9]: 4004
  Group[ 10]: 1006
  Group[ 11]: 4005
  Group[ 12]: 4006
  Group[ 13]: 1005
  Group[ 14]: 5012
  Group[ 15]: 5023



More information about the samba mailing list