LDAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesLDAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 9th, 2004, 08:56 AM
UmaM UmaM is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Germany
Posts: 15 UmaM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #2  
Old March 9th, 2004, 11:01 AM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Psycho Canadian
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jan 2001
Location: Canada
Posts: 4,845 Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 20 h 16 m 27 sec
Reputation Power: 634
can you restart the process? if you can't figure it out try rebooting the machine if you can

Reply With Quote
  #3  
Old March 10th, 2004, 02:26 AM
UmaM UmaM is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Germany
Posts: 15 UmaM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #4  
Old March 10th, 2004, 02:35 AM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Psycho Canadian
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jan 2001
Location: Canada
Posts: 4,845 Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 20 h 16 m 27 sec
Reputation Power: 634
if nothing appears in the list them ldap isn't running at all, that's the problem, try starting it

Reply With Quote
  #5  
Old March 10th, 2004, 06:07 AM
UmaM UmaM is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Germany
Posts: 15 UmaM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #6  
Old March 10th, 2004, 07:24 AM
UmaM UmaM is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Germany
Posts: 15 UmaM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #7  
Old March 10th, 2004, 05:18 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Psycho Canadian
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jan 2001
Location: Canada
Posts: 4,845 Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 20 h 16 m 27 sec
Reputation Power: 634
glad it worked out

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesLDAP Programming > problems starting ldap server

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap