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

Attachment: signature.asc
Description: Digital signature

Reply via email to