mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
ITS#6699 search references must turn onelevel scope to base
This commit is contained in:
parent
c7e19f9b62
commit
1e18b823a0
1 changed files with 5 additions and 1 deletions
|
|
@ -708,7 +708,11 @@ ldap_chain_search(
|
|||
|
||||
} else {
|
||||
/* RFC 4511: if scope is absent, use original */
|
||||
tmp_oq_search.rs_scope = op->ors_scope;
|
||||
/* Section 4.5.3: if scope is onelevel, use base */
|
||||
if ( op->ors_scope == LDAP_SCOPE_ONELEVEL )
|
||||
tmp_oq_search.rs_scope = LDAP_SCOPE_BASE;
|
||||
else
|
||||
tmp_oq_search.rs_scope = op->ors_scope;
|
||||
}
|
||||
|
||||
rc = LDAP_SUCCESS;
|
||||
|
|
|
|||
Loading…
Reference in a new issue