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

Juan Miguel Corral cde_ruylopez at yahoo.es
Sun Aug 31 21:49:27 UTC 2008


Yes, you're right. I checked many times slapd.conf, but forgot /etc/default/slapd. There was a line I had in etch like this:

  SLAPD_SERVICES="ldap:/// ldaps:/// ldapi://%2fvar%2frun%2fldapi/"

which I kept when migrated to lenny. Replacing this line with

  SLAPD_SERVICES="ldap:/// ldaps:/// ldapi:///"

made everything work.

I apologise for the inconvenience. Thank you very much.
Juan.

--- El sáb, 30/8/08, Steve Langasek <vorlon at debian.org> escribió:
De: Steve Langasek <vorlon at debian.org>
Asunto: Re: [Pkg-openldap-devel] Bug#495717: Slapd no creating socket in the right place
Para: cde_ruylopez at yahoo.es, 495717 at bugs.debian.org
Fecha: sábado, 30 agosto, 2008 12:00

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


__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.es 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/pkg-openldap-devel/attachments/20080831/161b7aff/attachment-0001.htm 


More information about the Pkg-openldap-devel mailing list