[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: starting openldap



> trouble reading in ldif file with ldapaddi've just managed to upgrade
> the rh7 installed openldap v1.2.11 to openldap 2.0.7. however, when
> slapd auto-startup upon pc boot up, it will start with "slapd -u
> ldap", which makes ldapsearch return no result. i've to manually kill
> and restart it with slapd so that search will be ok. is starting slapd
> as "ldap" user really necessary. how can i make slapd start each time
> without the "-u ldap" option. thanks.

this really doesn't have anything to do with openldap but ...

you need to edit the start up script and change the options that openldap
starts with (i believe under redhat it /etc/rc.d/init.d/openldap).  in
there remove the "-u ldap" from the script.

*however* it is a good thing for the ldap server to run as a non-root
user.  i suspect that the only reason this is causing your problems is
that the user ldap doesn't have permissions to read either your config
files (slapd.conf or the schema files) or the actual database.

adam.