[Date Prev][Date Next] [Chronological] [Thread] [Top]

ldap_bind: Can't contact LDAP server & hangs!

i use Fedora 4
i installed openldap-2.3.11 and openssl-0.9.8a.tar.gz 
i started the ldap as : /usr/local/libexec/slapd -h "ldap:/// ldaps:///"
when i run the following command:
"ldapsearch -H ldap://mydomain.org/ -b dc=mydomain,dc=org -x -d-1" 
it hangs :
  wait4msg continue ld 0x9f97ef0 msgid 1 all 1 
** ld 0x9f97ef0 Connections: 
* host:mydomain.org port: 389 (default) 
refcnt: 2 status: Connected 
last used: Thu Nov 17 12:37:47 2005 

** ld 0x9f97ef0 Outstanding Requests: 
* msgid 1, origid 1, status InProgress 
outstanding referrals 0, parent count 0 
** ld 0x9f97ef0 Response Queue: 
ldap_chkResponseList ld 0x9f97ef0 msgid 1 all 1 
ldap_chkResponseList returns ld 0x9f97ef0 NULL 
ldap_int_select   ---------------------------------------> it hangs here!
but when i try to run the following command:
"ldapsearch -H ldaps://mydomain.org/ -b dc=mydomain,dc=org -x -d-1" 
the output is:
ldap_new_connection 1 1 0 
ldap_connect_to_host: TCP mydomain.org:636 
ldap_new_socket: 3 
ldap_prepare_socket: 3 
ldap_connect_to_host: Trying 
ldap_connect_timeout: fd: 3 tm: -1 async: 0 
ldap_bind: Can't contact LDAP server (-1) ----------------------------------> here is the error
and here is a snapshot of the nmap -sT localhost:
22/tcp   open  ssh
25/tcp   open  smtp
111/tcp  open  rpcbind
389/tcp  open  ldap
543/tcp  open  klogin
631/tcp  open  ipp
636/tcp  open  ldapssl
749/tcp  open  kerberos-adm
909/tcp  open  unknown
919/tcp  open  unknown
2049/tcp open  nfs

can anyone help?