Discussion:
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
mukim pathan
2009-06-17 17:11:29 UTC
Permalink
Hi,

I have installed ldap 2.4.16 with bdb 4.5. When I am doing ldapsearch or
ldapadd i am getting error "ldap_sasl_bind(SIMPLE): Can't contact LDAP
server (-1)".
I tried searching for the answers but it seems none of them applies in this
case, like permission to ldap, ldap server running on 389, configuration
file is good without any spaces in rootdn and suffix.
is there any solution to this??

Regards,
Mukim Pathan
Vince Rafale
2009-06-17 19:02:25 UTC
Permalink
Hi,

Have you planned to use sasl? If so, have you configured sasl?
Else, retry your ldapsearch and ldapadd with the '-x' option like this :
ldapsearch -x ......

Regards,

Vince
Post by mukim pathan
Hi,
I have installed ldap 2.4.16 with bdb 4.5. When I am doing ldapsearch
or ldapadd i am getting error "ldap_sasl_bind(SIMPLE): Can't contact
LDAP server (-1)".
I tried searching for the answers but it seems none of them applies in
this case, like permission to ldap, ldap server running on 389,
configuration file is good without any spaces in rootdn and suffix.
is there any solution to this??
Regards,
Mukim Pathan
Michael Ströder
2009-06-17 22:28:08 UTC
Permalink
Post by mukim pathan
ldapadd i am getting error "ldap_sasl_bind(SIMPLE): Can't contact LDAP
server (-1)".
Basically this says that the server is not reachable, nothing else. Make
sure you can reach the server at the network level at the address you
provided with command-line parameter -H.

Ciao, Michael.
Xu, Qiang (FXSGSC)
2009-06-18 00:55:00 UTC
Permalink
I remember Michael had said that to make successful SASL bindings, you must examine your DNS settings first, to make sure it can resolve hosname to ipaddress and vice versa correctly.

________________________________
From: openldap-technical-bounces+qiang.xu=***@OpenLDAP.org [mailto:openldap-technical-bounces+qiang.xu=***@OpenLDAP.org] On Behalf Of mukim pathan
Sent: Thursday, June 18, 2009 1:11 AM
To: openldap-***@openldap.org
Subject: ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)

Hi,

I have installed ldap 2.4.16 with bdb 4.5. When I am doing ldapsearch or ldapadd i am getting error "ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)".
I tried searching for the answers but it seems none of them applies in this case, like permission to ldap, ldap server running on 389, configuration file is good without any spaces in rootdn and suffix.
is there any solution to this??

Regards,
Mukim Pathan
Michael Ströder
2009-06-18 08:11:03 UTC
Permalink
Post by Xu, Qiang (FXSGSC)
I remember Michael had said that to make successful SASL bindings, you
must examine your DNS settings first, to make sure it can resolve
hosname to ipaddress and vice versa correctly.
The error message

"ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)"

clearly indicates that the server could not be reached at all. There's a
problem at network level or the server does not listen on the host:port
used. Note that within the LDAP client lib really connecting to the
server is deferred until the first LDAP operation function is called.
This seems to be a simple bind in this case.

Ciao, Michael.

Loading...