Find the answer to your Linux question:
Results 1 to 2 of 2
i installed openldap-stable-20051018.tar.gz and openssl-0.9.8a.tar.gz i run the command: "ldapsearch -H ldap://mydomain.org/ -b dc=mydomain,dc=org -x" and it works but when i try to run it via SSL: "ldapsearch -H ldaps://mydomain.org/ ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Posts
    21

    ldap_bind: Can't contact LDAP server


    i installed openldap-stable-20051018.tar.gz and openssl-0.9.8a.tar.gz
    i run the command:
    "ldapsearch -H ldap://mydomain.org/ -b dc=mydomain,dc=org -x" and it works
    but when i try to run it via SSL:
    "ldapsearch -H ldaps://mydomain.org/ -b dc=mydomain,dc=org -x"
    i got the following message:
    "ldap_bind: Can't contact LDAP server (-1)"
    the SSL certificate contains CN=mydomain.org
    can anyone help?
    thanks

  2. #2
    Just Joined!
    Join Date
    Nov 2005
    Posts
    21
    when i run :
    "ldapsearch -H ldap://demo.archive.bibalex.org/ -b dc=demo,dc=archive,dc=bibalex,dc=org -x -d-1"
    the output is:
    ***********************************************
    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:
    Empty
    ldap_chkResponseList ld 0x9f97ef0 msgid 1 all 1
    ldap_chkResponseList returns ld 0x9f97ef0 NULL
    ldap_int_select
    ************************************************
    and then it hang! no response until i close it!
    when i run :
    "ldapsearch -H ldaps://demo.archive.bibalex.org/ -b dc=demo,dc=archive,dc=bibalex,dc=org -x -d-1"
    the output is:
    ************************************************
    ldap_create
    ldap_url_parse_ext(ldaps://mydomain.org/)
    ldap_bind
    ldap_simple_bind
    ldap_sasl_bind
    ldap_send_initial_request
    ldap_new_connection 1 1 0
    ldap_int_open_connection
    ldap_connect_to_host: TCP mydomain.org:636
    ldap_new_socket: 3
    ldap_prepare_socket: 3
    ldap_connect_to_host: Trying 170.15.2.22:636
    ldap_connect_timeout: fd: 3 tm: -1 async: 0
    ldap_perror
    ldap_bind: Can't contact LDAP server (-1)
    *************************************************
    i hope u can help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •