[Pkg-openldap-devel] Bug#495717: Bug#495717: Slapd no creating socket in the right place

Steve Langasek vorlon at debian.org
Sat Aug 30 10:00:44 UTC 2008


On Fri, Aug 29, 2008 at 10:29:40AM +0000, Juan Miguel Corral wrote:
> Sorry for not providing more info here; I sent this info to Brian May
> instead of the bug tracking mail.

> Here's the info i sent to Brian:

> I am using the version currently in lenny:

> #  dpkg -l | grep -e libldap -e slapd
> ii  libldap-2.4-2                        2.4.10-3               OpenLDAP libraries
> ii  libldap2-dev                         2.4.10-3               OpenLDAP development libraries
> ii  slapd                                2.4.10-3               OpenLDAP server (slapd)

> Looking inside /etc/init.d/slapd on the lenny box, I see the following lines:

>         # Backward compatibility with OpenLDAP 2.1 client libraries.
>         if [ ! -h /var/run/ldapi ] && [ ! -e /var/run/ldapi ] ; then
>                 ln -s slapd/ldapi /var/run/ldapi
>         fi

> But
> it looks like the opposite to the fix that needs to be done
> (/var/run/ldapi  is the real socket, and var/run/slapd/ldapi is the
> symlink that needs to be created).

That's incorrect.  The default ldapi socket created by the slapd package in
lenny is /var/run/slapd/ldapi.

Have you set a non-default ldapi URI in /etc/default/slapd?  There is no
reason for the slapd in lenny to be creating /var/run/ldapi as the socket
unless you've overridden the default.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org





More information about the Pkg-openldap-devel mailing list