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

ldap_chase_referrals can't find_connection (ITS#3280)

Full_Name: Lloyd Parkes
Version: 2.2.11
OS: Solaris 
Submission from: (NULL) (

Various things conspire to prevent find_connections from finding conenctions
that it can use. One easy one to fix (I hope) ldap_chase_referrals calls
ldap_url_parse_ext when it should use ldap_url_parse. The latter function sets
the port number to LDAP_PORT if there is no explicit port number.
find_connection checks that the port numbers match and since ldap_url_parse_ext
leaves the port number as 0, then it will never match any current connection. 

I haven't even thought about testing this, so there may be other issues I
haven't found yet.

I'll post to the devel list about improvements that could be made to