The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Databases
> LDAP Programming
|
Ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
Discuss Ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1) in the LDAP Programming forum on Dev Shed. Ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1) LDAP Programming forum discussing Lightweight Directory Access Protocol information and techniques. LDAP is used to allow applications to access directory information from a server.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

February 19th, 2008, 05:06 PM
|
|
Registered User
|
|
Join Date: Feb 2008
Posts: 3
Time spent in forums: 5 h 2 m 42 sec
Reputation Power: 0
|
|
|
Ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
I am very much new to LDAP. I had installed openLDAP 2.4.7 on FreeBSD. I am trying to create the database using ldapadd.
/usr/local/bin/ldapadd -f /tmp/entries.ldif -x -D "cn=Manager,dc=my-domain,dc=com" -w secret.
But it throws the error like
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1).
I am running it using one program ( PUTTY ) from remote PC which is having Win XP OS.
Give any clue to sole it.
|

February 13th, 2009, 05:10 AM
|
|
Registered User
|
|
Join Date: Feb 2009
Posts: 7
Time spent in forums: 57 m 54 sec
Reputation Power: 0
|
|
|
Help : LDAP Server
Hi, Even i am experiencing the same error, did anyone get an answer to this.?
Regards,
Sid
|

February 13th, 2009, 07:22 PM
|
|
Contributing User
|
|
Join Date: Jan 2009
Location: Charlotte, NC
Posts: 111
  
Time spent in forums: 22 h 18 m
Reputation Power: 8
|
|
|
you need to add -h hostname and if your not using the default port 389 then also add -p <port>
/usr/local/bin/ldapadd -x -h <hostname> -p <port> -D "cn=Manager,dc=my-domain,dc=com" -w secret -f /tmp/entries.ldif
|

January 24th, 2011, 01:55 AM
|
|
Registered User
|
|
Join Date: Jan 2011
Location: Hungary
Posts: 2
Time spent in forums: 30 m 37 sec
Reputation Power: 0
|
|
|
Ldap sasl bind
Hi all!
This bind error "-1" occurs, when the default config file (/etc/ldap/ldap.conf) contains the default uri: "URI ldap://ldap.yourhost.yourdomain ldap://ldap-master.yourhost.yourdomain : port" . You have to hash-mark this line, and add this instead: "URI ldap://127.0.0.1", so the query will find the correct data automatically, or at least in my case, this was the only solution that worked. Set this, and try ldapsearch -x. If it works, you only have to create groups, users, etc. If you do not want to secure your ldap it's a good idea to turn off the TLS request too, so add this line to ldap.conf :
"TLS_REQCERT never", if someone hadn't suggested before (I didn't read all the comments before). I hope it helps
KAMA3
|

January 24th, 2011, 02:04 AM
|
|
Registered User
|
|
Join Date: Jan 2011
Location: Hungary
Posts: 2
Time spent in forums: 30 m 37 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by kama3 Hi all!
This bind error "-1" occurs, when the default config file (/etc/ldap/ldap.conf) contains the default uri: "URI ldap://ldap.yourhost.yourdomain ldap://ldap-master.yourhost.yourdomain : port" . You have to hash-mark this line, and add this instead: "URI ldap://127.0.0.1", so the query will find the correct data automatically, or at least in my case, this was the only solution that worked. Set this, and try ldapsearch -x. If it works, you only have to create groups, users, etc. If you do not want to secure your ldap it's a good idea to turn off the TLS request too, so add this line to ldap.conf :
"TLS_REQCERT never", if someone hadn't suggested before (I didn't read all the comments before). I hope it helps
KAMA3 |
I've forgot to mention, to check all the "dc=" data in /etc/ldap/slapd.conf. The correct form should be (f.e is your domain is example.com) "dc=example,dc=com" or (if it's server1.example,com) "dc=server1,dc=exapmle,dc=com", at every line it occurs.
|

April 6th, 2011, 10:50 PM
|
|
Registered User
|
|
Join Date: Apr 2011
Posts: 3
Time spent in forums: 43 m 24 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by kama3 I've forgot to mention, to check all the "dc=" data in /etc/ldap/slapd.conf. The correct form should be (f.e is your domain is example.com) "dc=example,dc=com" or (if it's server1.example,com) "dc=server1,dc=exapmle,dc=com", at every line it occurs. |
Hi I installed Open LDAP on Windows XP version 2.4.24. I configured a slapd config file and when I try to connect to the LDAP via WebApplication Server Community Edition via the Admin Console I receive the error can't contact LDAP server (-1). What am I doing wrong PLEASE HELP!!!
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|