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

RE: (ITS#3637) ldap_search_s hangs in ldap_int_select over stunnel



Kurt,
Thanks for your very prompt reply. It's much appreciated.
I'm new to openldap, although it's been running faultlessly here for so
long that no-one has any experience in it!

> Does ldapsearch -H ldap://... work? (without stunnel)
> Does ldapsearch -H ldap://localhost/... work? (with stunnel)
Yes to both.

> Does ldapsearch -H ldaps://... work? (without stunnel)
No, but it doesn't hang, it fails to bind.

I've not connected directly to LDAPS before, so I'll continue to
investigate this.
The trace is:

ldap_create
ldap_url_parse_ext(ldaps://....soton.ac.uk)
ldap_bind_s
ldap_simple_bind_s
ldap_sasl_bind_s
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection
ldap_int_open_connection
ldap_open_defconn: successful
ldap_send_server_request
** Connections:
* host: ....soton.ac.uk  port: 636  (default)
  refcnt: 2  status: Connected
  last used: Fri Apr  8 10:22:25 2005

** Outstanding Requests:
 * msgid 1,  origid 1, status InProgress
   outstanding referrals 0, parent count 0
** Response Queue:
   Empty
ldap_int_select
read1msg: msgid 1, all 1
ber_get_next failed.
ldap_perror
ldap_bind: Can't contact LDAP server (-1)