LinuxQuestions.org
Review your favorite Linux distribution.
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 07-30-2013, 11:26 AM   #1
baconisbetter
LQ Newbie
 
Registered: Aug 2012
Posts: 26

Rep: Reputation: Disabled
no available LDAP server found


I have an LDAP server, that i can query from a host using ldapsearch.
Code:
ldapsearch -x -v -ZZ -D "cn=test tester,ou=People,dc=lol,dc=local" -W
or
Code:
ldapsearch -x -v -ZZ -D "cn=test tester,ou=People,dc=lol,dc=local" -W -H ldap://192.168.1.11
Returns a valid identical search, and reflects what I've put in LDAP. I have ldap listening on both 389 and 636 right now, can use ldap search with or without the TLS switch (-ZZ) and it always works. you can even telnet to the address and port to see it's listening, and 'netsat -pant | grep (port)' shows it's listening.

However if i try to log in from this host with a simple 'su' command, it returns:
su: user test does not exist

the log files on the server are blank, the log files on the client are as follows:
Code:
ul 30 12:19:27 host3 nslcd[21654]: [1bd7b7] ldap_start_tls_s() failed: Connect error (uri="ldap://192.168.1.11")
Jul 30 12:19:27 host3 nslcd[21654]: [1bd7b7] failed to bind to LDAP server ldap://192.168.1.11: Connect error
Jul 30 12:19:27 host3 nslcd[21654]: [1bd7b7] no available LDAP server found
What did i miss here? how is 'ldapsearch' able to talk to ldap, but 'su' isn't?
 
Old 07-30-2013, 12:48 PM   #2
baconisbetter
LQ Newbie
 
Registered: Aug 2012
Posts: 26

Original Poster
Rep: Reputation: Disabled
ok i got this fixed. had to add this line to /etc/nslcd.conf
Code:
tls_cacertfile /etc/openldap/cacerts/authconfig_downloaded.pem
 
  


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
nslcd[1822]: [c6a529] no available LDAP server found decenter Linux - Software 0 11-29-2012 08:45 AM
[SOLVED] LDAP authentication error [Can't contact LDAP server] from apache httpd jonathan_w_brown Linux - Server 6 12-28-2011 05:30 PM
[SOLVED] openldap client fails to connect ldap server 'ldap_bind: Can't contact LDAP server' JALITE Linux - Server 12 09-30-2010 08:17 AM
how to setup open ldap server and solaris 10 as ldap client maheshlad Linux - Software 1 10-10-2009 12:55 AM
authenticating through one ldap server that uses other ldap servers & active director dreamm Linux - Server 1 02-21-2007 08:22 AM

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

All times are GMT -5. The time now is 01:14 PM.

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