LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-29-2014, 11:29 PM   #1
Suresh Chandra
LQ Newbie
 
Registered: Apr 2014
Posts: 1

Rep: Reputation: Disabled
openldap client fails to connect ldap server 'ldap_bind: Can't contact LDAP server'


I Just installed openldap server on Solaris OS called 'ldap-master.example.com', it works fine, ldapsearch returns all ldap information on Server.

Installed openldap client on another CentOS called 'ldapclient1', configured it with most basic configuration, with ssl/tls etc. but ldapsearch returns error:
[root@ldapclient1 ~]# ldapsearch -x -b "dc=example,dc=com"
ldap_bind: Can't contact LDAP server (-1)

ldap-master.example.com is pingable:
[root@ldapclient1 ~]# ping ldap-master.example.com
PING ldap-master.example.com (192.168.50.254) 56(84) bytes of data.
64 bytes from ldap-master.example.com (192.168.50.254): icmp_seq=1 ttl=64 time=2.66 ms
 
Old 04-30-2014, 02:23 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi and welcome to LQ,

Since the ldap server is not local, you need to specify it using either the -h or -H switch. I.e:
Code:
ldapsearch -x -b "dc=example,dc=com" -h ldap-master.example.com
ldapsearch -x -H ldap://ldap-master.example.com/dc=example,dc=com
Alternatively, you can use /etc/ldap.conf on the client to specify the ldap server and other details.

Regards
 
  


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
ldap_bind Can't contact LDAP server mesh2005 Linux - Networking 17 06-19-2014 08:44 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
When called from cgi script/apache user: "ldap_bind: Can't contact LDAP server (-1)" redhydralisk Linux - Networking 2 04-29-2010 01:26 PM
ldap_bind: Can't contact LDAP server (-1) ramramu Linux - Networking 1 01-06-2009 06:37 AM

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

All times are GMT -5. The time now is 03:27 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