LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-09-2007, 08:24 PM   #1
wslyhbb
Member
 
Registered: Apr 2002
Location: Chicago, IL
Distribution: Mandriva 2009.0 PowerPack x86_64
Posts: 150

Rep: Reputation: 15
LDAP question


Had a power outage, so LDAP did not shut down properly, BDB database got wedged so I had to restore it :-(, really wish I had not used BDB as my backend, but thats another story. Anyhow, got my LDAP server backup and I can run ldapsearches from the command line no problem, but when I try to login as a user that only exists in the LDAP server I am getting the following errors in my "messages" log file:
Feb 9 19:39:43 server01 ntpdate[3093]: nss_ldap: failed to bind to LDAP server ldap://server01.bluemapletech.com: Can't contact LDAP server
Feb 9 19:39:43 server01 ntpdate[3093]: nss_ldap: could not search LDAP server - Server is unavailable
Feb 9 19:39:43 server01 ntpdate[3093]: nss_ldap: failed to bind to LDAP server ldap://server01.bluemapletech.com: Can't contact LDAP server
Feb 9 19:39:43 server01 ntpdate[3093]: nss_ldap: could not search LDAP server - Server is unavailable

Also, Samba does not seem to be having a problem accessing LDAP.

Why is nss_ldap failing? Can someone help me?
 
Old 02-10-2007, 03:24 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
It sounds like nss_ldap is referencing the server by a different id than everything else (i.e. a DNS name instead of localhost or 127.0.0.1).
 
Old 02-10-2007, 03:40 PM   #3
wslyhbb
Member
 
Registered: Apr 2002
Location: Chicago, IL
Distribution: Mandriva 2009.0 PowerPack x86_64
Posts: 150

Original Poster
Rep: Reputation: 15
Ok, thank you. I changed ldap.config to say host localhost rather than host server01.bluemapletech.com, so now it works, but I am curious why host server01.bluemapletech.com does not work anymore. My hosts file says:
127.0.0.1 localhsot server01.bluemapletech.com server01

Therefore, any of the above should point to the loopback address. Any ideas?
 
Old 02-10-2007, 06:26 PM   #4
wslyhbb
Member
 
Registered: Apr 2002
Location: Chicago, IL
Distribution: Mandriva 2009.0 PowerPack x86_64
Posts: 150

Original Poster
Rep: Reputation: 15
Actually, I think its fine now, no idea. Anyhow, thanks.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Just installed ubuntu... got a question (LDAP,PHP) scrupul0us Ubuntu 2 02-05-2007 08:07 PM
Ldap security question Neruocomp Linux - Security 1 05-22-2006 11:21 AM
LDAP! basic question itz2000 Linux - General 6 11-06-2005 10:19 AM
Short question PHP + LDAP Hko Programming 2 08-07-2004 10:04 AM
LDAP question dominant Linux - General 3 03-30-2004 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration