Have you on the server side verified that LDAP is up and listening on the proper port?

 

ps –eaf | grep slapd

 

netstat -na | grep 389

tcp        0      0 0.0.0.0:389                 0.0.0.0:*                   LISTEN

 

If the above come back and indicate it is up and listening see if you can telnet to the <ip> 389 and get something back.

 

Also you could check to see if you are getting errors on server startup by checking the slapd.log on the server side and see if it is reporting any errors.

 

If you are using the command line search are you specifying the remote server using the –h option?

 

Most of the errors seem to indicate there is nothing listening on the server to handle the search request.

 

--Kris Burton

 

 

 


From: openldap-technical-bounces+kris.burton=acision.com@OpenLDAP.org [mailto:openldap-technical-bounces+kris.burton=acision.com@OpenLDAP.org] On Behalf Of Donny George
Sent: Wednesday, November 19, 2008 8:47 AM
To: openldap-technical@openldap.org
Subject: cont contact server since 3 days+please help

 


hello all

i am a beginner with openldap and installed a server and a client with ldap(both machines ubuntu 8.04)

but once i tried to populate the database at the server it gave the error that it couldnt contact the server. i cudnt connect to the server frmo the client either.

i ran the command ldapsearch -d 255 to debug and heres the result

ldap_create
ldap_pvt_sasl_getmech
ldap_search
put_filter: "(objectclass=*)"
put_filter: simple
put_simple_filter: "objectclass=*"
ldap_build_search_req ATTRS: supportedSASLMechanisms
ldap_send_initial_request
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP 10.4.139.5:389
ldap_new_socket: 3
ldap_prepare_socket: 3
ldap_connect_to_host: Trying 10.4.139.5:389
ldap_pvt_connect: fd: 3 tm: -1 async: 0
ldap_close_socket: 3
ldap_err2string
ldap_sasl_interactive_bind_s: Can't contact LDAP server (-1)


and if i run ldapsearch -x it gives the message

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


please someone help, i dont know where i cud start to solve this error.


--
Donny George


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.