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

Patch for referrals (ITS#905)

Full_Name: Bertrand Croq
Version: DEV
OS: Debian 2.2 (linux 2.2.17)
URL: ftp://ftp.openldap.org/incoming/bertrand-croq-001124.patch
Submission from: (NULL) (

  I posted a mail in openldap-bugs a few days ago about a problem with the
referrals: when a referral precising the new scope for a search arrives, the old
scope is still used (the new one is ignored).

  Here is a patch to correct this: if there is no scope in the referral, the
scope from the previous search is used (otherwise, the scope would always become
"base" as it is the default for an ldap URL without scope), and if a new scope
is present, it is used.

Maybe this is not the best way to do it but it seems to work.