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

Re: Goofy RedHat Problem

Java Rockx <javarockx@yahoo.com> writes:

> Hi all.
> I'm hoping someone has seen something like this and
> can give me a pointer or two on resolving this
> problem.
> I have a functioning (I think) OpenLDAP server version
> 2.0.23 on a RedHat 9 server.
> The data for the LDAP directory needs to be imported
> from an LDIF file. I have successfully done the LDIF
> import with slapadd. NOTE: slapd.conf is configured
> the same as the server that originally did the LDIF
> export.
> Then I start the LDAP service via the init.d script
> and all is well until I attempt to do an ldapsearch.
> Here nothing is returned. It's like the slapadd didn't
> work.
> So I decided to start slapd from the command line via:
> [root]#/usr/sbin/slapd -f /etc/openldap/slapd.conf
> Once I did this the ldapsearch returned all the data
> that I expected.
> So to recap ldapsearch only works when the ldap server
> is started manually at the command line. The unaltered
> init.d script that was installed with the RPM  starts
> the service but ldapsearch fails to retrieve any data.
> I've lost some hair over this one. Any help is
> appreciated.

You probabely loaded the ldif file as root, but the slapd process is
owned by an other user, look at your init script, who is running
slapd, than change permissions.


Dieter Klünter | Systemberatung
Tel.: +49.40.64861967
Fax : +49.40.64891521