[Samba] Winbind ldap samba 3 BDC getent passwd

jean-marc pouchoulon jean-marc.pouchoulon at ac-montpellier.fr
Mon Oct 13 12:11:44 GMT 2003


Bonjour, 
	
	On Samba3 rpm, redhat 9


	I decided to do a strace on a 'getent passwd' command and have a
look.
      (Wbinfo -u and wbinfo -g works ) 

	I can see a time out.

connect(5, {sa_family=AF_UNIX,
path="/var/cache/samba/winbindd_privileged/pipe"}, 110) = 0
close(4)                                = 0
select(6, [5], NULL, NULL, {0, 0})      = 0 (Timeout)

	
ls -al /var/cache/samba/winbindd_privileged/pipe
srwxrwxrwx    1 root     root            0 oct 13 13:37
/var/cache/samba/winbindd_privileged/pipe

	What is the role of winbindd_privileged/pipe ? 
	I have a few problem with redhat 9 , unlinked with samba , does
winbind work on other site with RH 9 ?

	thanks


	Jean-Marc


	

Whole trace :



read(3, "", 4096)                       = 0
open("/etc/ld.so.cache", O_RDONLY)      = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=62909, ...}) = 0
old_mmap(NULL, 62909, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40279000
close(4)                                = 0
open("/lib/libnss_winbind.so.2", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\20"...,
512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=13828, ...}) = 0
old_mmap(NULL, 22236, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) =
0x40295000
old_mmap(0x40298000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
4, 0x3000) = 0x40298000
old_mmap(0x40299000, 5852, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40299000
close(4)                                = 0
munmap(0x40279000, 62909)               = 0
getpid()                                = 2069
getpid()                                = 2069
getpid()                                = 2069
lstat64("/tmp/.winbindd", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat64("/tmp/.winbindd/pipe", {st_mode=S_IFSOCK|0777, st_size=0, ...})
= 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 4
fcntl64(4, F_GETFD)                     = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
connect(4, {sa_family=AF_UNIX, path="/tmp/.winbindd/pipe"}, 110) = 0
getpid()                                = 2069
getpid()                                = 2069
select(5, [4], NULL, NULL, {0, 0})      = 0 (Timeout)
write(4, " \6\0\0\0\0\0\0\25\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1568) = 1568
read(4, "\24\5\0\0\1\0\0\0\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1300) = 1300
getpid()                                = 2069
getpid()                                = 2069
select(5, [4], NULL, NULL, {0, 0})      = 0 (Timeout)
write(4, " \6\0\0(\0\0\0\25\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1568) = 1568
read(4, "9\5\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1300) = 1300
read(4, "/var/cache/samba/winbindd_privil"..., 37) = 37
lstat64("/var/cache/samba/winbindd_privileged", {st_mode=S_IFDIR|0750,
st_size=4096, ...}) = 0
lstat64("/var/cache/samba/winbindd_privileged/pipe",
{st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
connect(5, {sa_family=AF_UNIX,
path="/var/cache/samba/winbindd_privileged/pipe"}, 110) = 0
close(4)                                = 0
select(6, [5], NULL, NULL, {0, 0})      = 0 (Timeout)
write(5, " \6\0\0\6\0\0\0\25\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1568) = 1568
read(5, "\24\5\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1300) = 1300
getpid()                                = 2069
getpid()                                = 2069
select(6, [5], NULL, NULL, {0, 0})      = 0 (Timeout)
write(5, " \6\0\0\10\0\0\0\25\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1568) = 1568
read(5, "\24\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1300) = 1300
close(3)                                = 0
munmap(0x40024000, 4096)                = 0
getpid()                                = 2069
getpid()                                = 2069
select(6, [5], NULL, NULL, {0, 0})      = 0 (Timeout)
write(5, " \6\0\0\7\0\0\0\25\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1568) = 1568
read(5, "\24\5\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1300) = 1300
munmap(0x40025000, 4096)                = 0
exit_group(0)





-----Message d'origine-----
De :
samba-bounces+jean-marc.pouchoulon=ac-montpellier.fr at lists.samba.org
[mailto:samba-bounces+jean-marc.pouchoulon=ac-montpellier.fr at lists.samba
.org] De la part de jean-marc pouchoulon
Envoyé : jeudi 2 octobre 2003 9:15
À : 'Gerald (Jerry) Carter'
Cc : samba at lists.samba.org
Objet : RE : [Samba] Winbind ldap samba 3 BDC getent passwd answerdon't
retrieve domain users,can't login on the domain with users that are not
on /ect/passwd + typoerror ?


Hi ,
	I've just upgraded to the last samba rpm on a redhat 9 and I
have a new problem on winbind wbinfo -u and wbinfo -g this time don't
return user or group. getent passwd don't return the users but I think
this time it's a direct inheritance of the previous line. 
I can see in the log a 'lookupsid' with an unknow sid number 
I can suppose this sid number come from the install ( net getlocalsid
and netgetlocalsid DOMAIN give the good sid domain)

2 small other things:

If I use idmap backend = ldapsam:ldap://ip_address
I have 

[2003/10/02 08:01:40, 5] lib/module.c:smb_probe_module(113)
  Probing module 'ldapsam': Trying to load from
/usr/lib/samba/idmap/ldapsam.so [2003/10/02 08:01:40, 3]
lib/module.c:do_smb_load_module(46)
  Error loading module '/usr/lib/samba/idmap/ldapsam.so':
/usr/lib/samba/idmap/ldapsam.so: Ne pe
ut ouvrir le fichier d'objet partagé: Aucun fichier ou répertoire de
ce type [2003/10/02 08:01:40, 0] sam/idmap.c:idmap_init(136)
  idmap_init: could not load remote backend 'ldapsam'

With  idmap backend = ldap:ldap://ip_address winbind is able to start

Testparm give a warning:
Loaded services file OK.
'winbind separator = +' might cause problems with group membership.

	Hope this can help going further in the analyse. 

Jean-Marc 





More information about the samba mailing list