#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Location
    Germany
    Posts
    15
    Rep 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
  2. #2
  3. Psycho Canadian
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Jan 2001
    Location
    Canada
    Posts
    4,846
    Rep Power
    635
    can you restart the process? if you can't figure it out try rebooting the machine if you can
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Location
    Germany
    Posts
    15
    Rep Power
    0

    what does netstat output tell me?


    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
  6. #4
  7. Psycho Canadian
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Jan 2001
    Location
    Canada
    Posts
    4,846
    Rep Power
    635
    if nothing appears in the list them ldap isn't running at all, that's the problem, try starting it
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Location
    Germany
    Posts
    15
    Rep Power
    0

    port problem?


    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
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Location
    Germany
    Posts
    15
    Rep 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
  12. #7
  13. Psycho Canadian
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Jan 2001
    Location
    Canada
    Posts
    4,846
    Rep Power
    635

IMN logo majestic logo threadwatch logo seochat tools logo