socket path does not match nssov's socket path

Bug #508199 reported by ben thielsen
10
This bug affects 2 people
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://us.archive.ubuntu.com karmic/universe Packages
        100 /var/lib/dpkg/status

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_ldap.so.2 | grep -iF '/var/run/'
/var/run/nslcd/nslcd.socket

>strings /usr/lib/ldap/nssov.so.0.0.0 | grep -iF '/var/run'
/var/run/nslcd/socket
/var/run/nslcd
unlink() of /var/run/nslcd/socket failed (ignored): %s
nssov: unlink() of /var/run/nslcd/socket failed (ignored): %s
nssov: bind() to /var/run/nslcd/socket failed: %s

>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

Revision history for this message
Arthur de Jong (adejong) wrote :

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.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nss-ldapd (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.