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
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
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
mukim pathan wrote:
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.
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=fujixerox.com@OpenLDAP.org [mailto:openldap-technical-bounces+qiang.xu=fujixerox.com@OpenLDAP.org] On Behalf Of mukim pathan Sent: Thursday, June 18, 2009 1:11 AM To: openldap-technical@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
Xu, Qiang (FXSGSC) wrote:
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.
openldap-technical@openldap.org