The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Databases
> LDAP Programming
|
problems starting ldap server
Discuss problems starting ldap server in the LDAP Programming forum on Dev Shed. problems starting ldap server LDAP Programming forum discussing Lightweight Directory Access Protocol information and techniques. LDAP is used to allow applications to access directory information from a server.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

March 9th, 2004, 08:56 AM
|
|
Registered User
|
|
Join Date: Feb 2004
Location: Germany
Posts: 15
Time spent in forums: 37 m 10 sec
Reputation Power: 0
|
|
|
problems starting ldap server
Hi,
I already hat a ldap server running and everything was working fine. Then I tried modified an entry (using phpLDAPAdmin) which also worked fine before but this time it just went on working for ages so I just quit it using the "back" button.
Now nothing works anymore - I got the message:
"Can't contact LDAP server
error code: 0x51(LDAP_SERVER_DOWN)
description: The LDAP server is down."
Using "ldapadd -x" the message I receive is:
"ldap_bind: Can't contact LDAP server (81)"
With "ps aux | grep slapd" I see that one process is running, however with /etc/init.d/ldap status I only get:
"Checking for service ldap: "
I searched so many sites now and I found that a lot of people had the same problem but the solutions don't work for me or are just to complicated.
So if somebody knows what may be the problem, please help me! ...in a beginner-friendly way ;-)
So long,
Uma
|

March 9th, 2004, 11:01 AM
|
 |
Psycho Canadian
|
|
Join Date: Jan 2001
Location: Canada
|
|
|
can you restart the process? if you can't figure it out try rebooting the machine if you can
|

March 10th, 2004, 02:26 AM
|
|
Registered User
|
|
Join Date: Feb 2004
Location: Germany
Posts: 15
Time spent in forums: 37 m 10 sec
Reputation Power: 0
|
|
|
what does netstat output tell me?
Quote: | Originally Posted by Viper_SB can you restart the process? if you can't figure it out try rebooting the machine if you can |
Yes, I tried both but it didn't help. I read in some sources to check the netstat output. I found out that neither slapd nor the port number 389 appear anywhere in the list. I just don't know what to do with this information...
Any idea?
Regards,
Uma
|

March 10th, 2004, 02:35 AM
|
 |
Psycho Canadian
|
|
Join Date: Jan 2001
Location: Canada
|
|
|
if nothing appears in the list them ldap isn't running at all, that's the problem, try starting it
|

March 10th, 2004, 06:07 AM
|
|
Registered User
|
|
Join Date: Feb 2004
Location: Germany
Posts: 15
Time spent in forums: 37 m 10 sec
Reputation Power: 0
|
|
|
port problem?
Quote: | Originally Posted by Viper_SB if nothing appears in the list them ldap isn't running at all, that's the problem, try starting it |
I already tried that a couple of times:
/etc/init.d/ldap start -> done
/etc/init.d/ldap status -> running
Still no entry in the netstat list and the same error as before (Can't contact ldap server).
Do you (or anybody else) know other (maybe port related) issues that might cause that behaviour?
Btw, telnet localhost 389 also doesn't work.
Last edited by UmaM : March 10th, 2004 at 06:10 AM.
Reason: forgot something
|

March 10th, 2004, 07:24 AM
|
|
Registered User
|
|
Join Date: Feb 2004
Location: Germany
Posts: 15
Time spent in forums: 37 m 10 sec
Reputation Power: 0
|
|
|
Problem solved :-)
Hi,
fixed the problem :-) Obviously some of my data was corrupted which would also explain why ldap stopped working just like that while I was editing data via a web interface. I moved all the data from /var/lib/ldap to /var/lib/ldapold and created a new empty /var/lib/ldap directory. Working now!
Thank you Viper_SB for your replies to my postings!
Cheers!
Uma
|

March 10th, 2004, 05:18 PM
|
 |
Psycho Canadian
|
|
Join Date: Jan 2001
Location: Canada
|
|
|
glad it worked out
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|