mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 08:09:34 -05:00
Fix reference scope.
This commit is contained in:
parent
b4ccbc2722
commit
3f1ab56fa9
2 changed files with 5 additions and 3 deletions
|
|
@ -401,8 +401,10 @@ searchit:
|
|||
if( scopeok ) {
|
||||
struct berval **erefs = get_entry_referrals(
|
||||
be, conn, op, e, NULL, cscope );
|
||||
struct berval **refs = referral_rewrite( erefs, e->e_dn,
|
||||
NULL, scope );
|
||||
struct berval **refs = referral_rewrite( erefs, e->e_dn, NULL,
|
||||
scope == LDAP_SCOPE_SUBTREE
|
||||
? LDAP_SCOPE_SUBTREE
|
||||
: LDAP_SCOPE_BASE );
|
||||
|
||||
send_search_reference( be, conn, op,
|
||||
e, refs, NULL, &v2refs );
|
||||
|
|
|
|||
|
|
@ -688,7 +688,7 @@ send_search_entry(
|
|||
}
|
||||
}
|
||||
if (conn->c_is_udp && op->o_protocol == LDAP_VERSION2) {
|
||||
rc = ber_printf( ber, "{is{t{s{",
|
||||
rc = ber_printf( ber, "{is{t{s{" /*}}}*/,
|
||||
op->o_msgid, "", LDAP_RES_SEARCH_ENTRY, e->e_dn );
|
||||
} else
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue