Jakob Ahlin
2009-Aug-12 15:16 UTC
[Samba] RID idmap backend: difficulties looking up a user by its uid
Hi, I'm having a problem using the RID idmap backend with Winbind. Having configured NSS with the Winbind module, I can use "getent passwd" to look up a user by its username, but not by its uidnumber. However, if I first do a lookup using the username or run wbinfo on the user (specifying either the username or uid), and then try "getent passwd" with the uidnumber, I get the correct result. See here: debianrid:~# getent passwd 161907 debianrid:~# wbinfo --uid-info 161907 lokr:*:161907:100513:Lovisa Kristiansson (lokr):/home/WBLABB/lokr:/bin/sh debianrid:~# getent passwd 161907 lokr:*:161907:100513:Lovisa Kristiansson (lokr):/home/WBLABB/lokr:/bin/sh debianrid:~# Related smb.conf lines: idmap backend = rid idmap uid = 100000-10000000 idmap gid = 100000-10000000 winbind use default domain = yes winbind enum groups = yes winbind enum users = yes Version information: Version 3.3.7-SerNet-Debian From log.winbindd-idmap: [2009/08/12 10:13:58, 0] lib/module.c:do_smb_load_module(69) Module '/usr/lib/samba/idmap/rid.so' initialization failed: NT_STATUS_OBJECT_NAME_COLLISION [2009/08/12 10:13:58, 1] winbindd/idmap.c:idmap_alloc_init(580) could not find idmap alloc module rid Any ideas? Regards, Jakob
Dale Schroeder
2009-Aug-12 17:29 UTC
[Samba] RID idmap backend: difficulties looking up a user by its uid
I believe smb.conf line should be idmap backend = rid:DOMAIN=100000-10000000 Dale Jakob Ahlin wrote:> Hi, > > I'm having a problem using the RID idmap backend with Winbind. Having > configured NSS with the Winbind module, I can use "getent passwd" to > look up a user by its username, but not by its uidnumber. However, if > I first do a lookup using the username or run wbinfo on the user > (specifying either the username or uid), and then try "getent passwd" > with the uidnumber, I get the correct result. > > See here: > debianrid:~# getent passwd 161907 > debianrid:~# wbinfo --uid-info 161907 > lokr:*:161907:100513:Lovisa Kristiansson (lokr):/home/WBLABB/lokr:/bin/sh > debianrid:~# getent passwd 161907 > lokr:*:161907:100513:Lovisa Kristiansson (lokr):/home/WBLABB/lokr:/bin/sh > debianrid:~# > > Related smb.conf lines: > idmap backend = rid > idmap uid = 100000-10000000 > idmap gid = 100000-10000000 > winbind use default domain = yes > winbind enum groups = yes > winbind enum users = yes > > Version information: > Version 3.3.7-SerNet-Debian > > From log.winbindd-idmap: > [2009/08/12 10:13:58, 0] lib/module.c:do_smb_load_module(69) > Module '/usr/lib/samba/idmap/rid.so' initialization failed: > NT_STATUS_OBJECT_NAME_COLLISION > [2009/08/12 10:13:58, 1] winbindd/idmap.c:idmap_alloc_init(580) > could not find idmap alloc module rid > > Any ideas? > > Regards, > Jakob >