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 February 19th, 2008, 05:06 PM
anilbaraiya anilbaraiya is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 3 anilbaraiya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  #2  
Old February 13th, 2009, 05:10 AM
s_malhotra s_malhotra is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2009
Posts: 7 s_malhotra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #3  
Old February 13th, 2009, 07:22 PM
ldapswandog ldapswandog is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2009
Location: Charlotte, NC
Posts: 111 ldapswandog User rank is Corporal (100 - 500 Reputation Level)ldapswandog User rank is Corporal (100 - 500 Reputation Level)ldapswandog User rank is Corporal (100 - 500 Reputation Level)ldapswandog User rank is Corporal (100 - 500 Reputation Level) 
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

Reply With Quote
  #4  
Old January 24th, 2011, 01:55 AM
kama3 kama3 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2011
Location: Hungary
Posts: 2 kama3 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #5  
Old January 24th, 2011, 02:04 AM
kama3 kama3 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2011
Location: Hungary
Posts: 2 kama3 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  #6  
Old April 6th, 2011, 10:50 PM
callee81 callee81 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2011
Posts: 3 callee81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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!!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesLDAP Programming > Ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)

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