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

(ITS#6463) dnssrv_back_referrals: ldaps not handled, search base gone

Full_Name: Jochen Keutel
Version: 2.4.21
OS: Solaris 10
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

dnssrv_back_referrals() always returns ldap URLs - even when the original
request was a ldaps query.

Additionally only protocol and hostname are put into the URL - the search base
doesn't appear any more.

Problematic code:

		url.bv_len = STRLENOF( "ldap://"; ) + strlen( hosts[i] );
		url.bv_val = ch_malloc( url.bv_len + 1 );

		strcpy( url.bv_val, "ldap://"; );
		strcpy( &url.bv_val[STRLENOF( "ldap://"; )], hosts[i] );

I'm not sure whether you want me to deliver a complete patch or not ... 

Thanks to my colleague Manuel Gaupp for detecting this problem.

Best regards,  Jochen.