Hi
I'm running openldap-2.3.35 on HPUX 11.11 and I can ldapsearch localhost
ldapsearch -H ldap://localhost/ -b dc=math,dc=uvic,dc=ca -x
# extended LDIF # # LDAPv3 # base <dc=math,dc=uvic,dc=ca> with scope subtree # filter: (objectclass=*) # requesting: ALL #
# math.uvic.ca dn: dc=math,dc=uvic,dc=ca dc: math objectClass: dcObject objectClass: organizationalUnit ou: Mathematics and Statistics
but not when I use the actual server name chief.math.uvic.ca
ldapsearch -H ldap://chief.math.uvic.ca/ -b dc=math,dc=uvic,dc=ca -x
I get ldap_result: Can't contact LDAP server (-1)
The same happens if I use the IP address instead of chief.math.uvic.ca
Here is the debug output: ldapsearch -H ldap://chief.math.uvic.ca/ -b dc=math,dc=uvic,dc=ca -x -d -1
ldap_create ldap_url_parse_ext(ldap://chief.math.uvic.ca/) 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 chief.math.uvic.ca:389 ldap_new_socket: 3 ldap_prepare_socket: 3 ldap_connect_to_host: Trying 142.104.7.18:389 ldap_connect_timeout: fd: 3 tm: -1 async: 0 ldap_open_defconn: successful ldap_send_server_request ber_scanf fmt ({it) ber: ber_dump: buf=0x40022460 ptr=0x40022460 end=0x4002246e len=14 0000: 30 0c 02 01 01 60 07 02 01 03 04 00 80 00 0....`........ ber_scanf fmt ({i) ber: ber_dump: buf=0x40022460 ptr=0x40022465 end=0x4002246e len=9 0000: 60 07 02 01 03 04 00 80 00 `........ ber_flush: 14 bytes to sd 3 0000: 30 0c 02 01 01 60 07 02 01 03 04 00 80 00 0....`........ ldap_write: want=14, written=14 0000: 30 0c 02 01 01 60 07 02 01 03 04 00 80 00 0....`........ ldap_result ld 40022270 msgid 1 ldap_chkResponseList ld 40022270 msgid 1 all 1 ldap_chkResponseList returns ld 40022270 NULL wait4msg ld 40022270 msgid 1 (infinite timeout) wait4msg continue ld 40022270 msgid 1 all 1 ** ld 40022270 Connections: * host: chief.math.uvic.ca port: 389 (default) refcnt: 2 status: Connected last used: Wed Jul 11 15:35:19 2007
** ld 40022270 Outstanding Requests: * msgid 1, origid 1, status InProgress outstanding referrals 0, parent count 0 ** ld 40022270 Response Queue: Empty ldap_chkResponseList ld 40022270 msgid 1 all 1 ldap_chkResponseList returns ld 40022270 NULL ldap_int_select read1msg: ld 40022270 msgid 1 all 1 ber_get_next ldap_read: want=8 error=Connection reset by peer ber_get_next failed. ldap_perror ldap_result: Can't contact LDAP server (-1)
I'm not sure what it means and I tried this with the firewall disabled as well. Any help would be much appreciated.
Thanks in advance
Mr. Kelly Choo, System Administrator - Department of Mathematics and Statistics University of Victoria PO Box 3045 STN CSC PHONE: (250) 472-4927 Victoria BC V8W 3P4 FAX: (250) 721-8962 http://www.math.uvic.ca