mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 08:39:37 -05:00
Referral hack
This commit is contained in:
parent
34edec3107
commit
875610cfcc
1 changed files with 3 additions and 6 deletions
|
|
@ -653,15 +653,12 @@ ldap_chase_referrals( LDAP *ld, LDAPRequest *lr, char **errstrp, int *hadrefp )
|
|||
continue;
|
||||
}
|
||||
|
||||
/* NOTE! This code treats "ldap://host/" differently
|
||||
* from "ldap://host". The behavior is wrong, but is
|
||||
* left here intentionally to maintain compatibility
|
||||
* with OpenLDAP 1.x and UMich 3.3 clients.
|
||||
*/
|
||||
*hadrefp = 1;
|
||||
|
||||
if (( refdn = strchr( tmpref, '/' )) != NULL ) {
|
||||
*refdn++ = '\0';
|
||||
newdn = 1;
|
||||
newdn = refdn[0] != '?' && refdn[0] != '\0';
|
||||
|
||||
} else {
|
||||
newdn = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue