Bug#380537: [Pkg-openldap-devel] Bug#380537: slapd: Fails to start after upgrade to from 2.3.23 to 2.3.24

Torsten Landschoff torsten at debian.org
Mon Jul 31 14:50:25 UTC 2006


Hi Peter, 

On Mon, Jul 31, 2006 at 07:05:45AM +0100, Peter Hicks wrote:
> >> slapd.conf is owned by root.root, and chown-ing it to root.openldap fixes
> >> the problem.
> > 
> > Is this because the perms on the file are 0640?
> 
> Spot on.

Hmm, that's weird because the main function in Debian's slapd contains
code that reads like this:

      	if ( read_config( configfile, configdir ) != 0 ) {
      		/* error handling */
	}
	if ( username != NULL || groupname != NULL ) {
		slap_init_user( username, groupname );
	}

Therefore this error should not happen. Could you be so kind to provide
an strace of slapd starting, about like this one:

    # strace -e trace=setuid32,open /usr/sbin/slapd \
	    -d 0 -g openldap -u openldap
    open("/etc/ldap/slapd.conf", O_RDONLY|O_LARGEFILE) = 8
    [...]
    setuid32(101)                           = 0
    # getent passwd 101
    openldap:x:101:103:OpenLDAP Server Account,,,:/var/lib/ldap:/bin/false

As you can see it works fine on my system, with the same slapd version.
I am curious why it does not work for you...

Greetings

	Torsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-openldap-devel/attachments/20060731/23b8917d/attachment.pgp


More information about the Pkg-openldap-devel mailing list