socket path does not match nssov's socket path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nss-ldapd (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
source package: 0.6.11ubuntu2
>lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10
>apt-cache policy libnss-ldapd
libnss-ldapd:
Installed: 0.6.11ubuntu2
Candidate: 0.6.11ubuntu2
Version table:
*** 0.6.11ubuntu2 0
500 http://
100 /var/lib/
the software appears to be looking for the socket file in a location other than where it's placed by openldap's nss overlay (slapo-nssov):
>strings /lib/libnss_
/var/run/
>strings /usr/lib/
/var/run/
/var/run/nslcd
unlink() of /var/run/
nssov: unlink() of /var/run/
nssov: bind() to /var/run/
>l /var/run/nslcd/
total 0
drwxr-xr-x 2 openldap openldap 60 2010-01-15 19:13 .
drwxr-xr-x 21 root root 760 2010-01-15 18:26 ..
srw-rw-rw- 1 openldap openldap 0 2010-01-15 19:00 socket
creating a symlink provides a temporary solution, but is probably not desirable for a formal solution:
>l /var/run/nslcd/
total 0
drwxr-xr-x 2 openldap openldap 80 2010-01-15 19:14 .
drwxr-xr-x 21 root root 760 2010-01-15 18:26 ..
lrwxrwxrwx 1 root root 6 2010-01-15 19:14 nslcd.socket -> socket
srw-rw-rw- 1 openldap openldap 0 2010-01-15 19:00 socket
The default location that both nss-ldapd and nssov use is /var/run/ nslcd/socket. The Ubuntu package (at least 0.6.11ubuntu2) uses /var/run/ nslcd/nslcd. socket, probably left over from 0.6.11ubuntu1 where it was /var/run/ nslcd.socket.