PDA

View Full Version : Cannot restart ldap service - FC1


PBSLuvr
13th August 2004, 07:18 PM
Hi folks,

I have been trying to duplicate Bynari's Insight Server (email) LDAP structure on my FC1 box. I have been having troubles and have been stopping the ldap service with "service ldap stop" and then removing all files from "/var/lib/ldap" then restarting ldap and trying different things.

The OpenLDAP.org site indicates to stop the server with a "kill ..." statement. However the Redhat docs indicate that "service ldap stop" is the correct way.

I may have done this too many times and now my ldap won't start again. Have I inadvertently corrupted something? I have restored the original slapd.conf but that did not help.

Anyone know how I can correct this? Anyone with experience with Bynari's Insight Server?

Regards
PBSLuvr
Ontario, Canada

Jman
13th August 2004, 10:37 PM
Any errors or interesting things in the logs?

I recommend using the service tool to start and stop things. It's easy.

PBSLuvr
16th August 2004, 02:07 PM

Thanks for responding.

Nothing unusual in the logs, just the records success and failure.

I have been using the service ldap stop/start commands.

I was also using the slap commands extensively (always when ldap was stopped) when I should have perhaps been using the "safer" ldapmodify / add etc. I was stopping the server and deleting the db files several times and the ldap started up ok until it did not restart. I did nothing different than what I had been doing.

I tried slapindex but that did not fix anything. I restored the original slapd.conf but again no luck - it 'should' have worked. It worked originally.

I have the 'gut' feeling that my ldap is all messed up. I suspect that I have to rebuild the ldap. Does this mean rpm hell for me? Haven't rebuilt before :( Shall I refer this issue to another forum group?

Regards,
PBSLuvr

PBSLuvr
16th August 2004, 03:12 PM
Tried rpm -ivh --replacepkgs openldap.... the openldap package from the original CD's. That did not fix anything. :(

PBSLuvr
16th August 2004, 11:18 PM
Well, of course my newbie approach was to re-install all. Went up to core 2!
Will be more gentle on my LDAP server.
Pray for me.

PBSLuvr
16th August 2004, 11:24 PM
Realized too late after re-installing that I had forgotten to specify the -f slapd.conf for the slapindex command when I was trying to fix my ldap db. Who knows it might've been just the trick.