Skip to content
Snippets Groups Projects
Commit 0e049853 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

honor 'disclose' ACL on searchBase/compare/referral/matched (ITS#3472 and comments on -devel)

parent f369e340
Branches
Tags
No related merge requests found
......@@ -109,6 +109,12 @@ backsql_compare( Operation *op, SlapReply *rs )
}
e = &user_entry;
if ( ! access_allowed( op, e, slap_schema.si_ad_entry, NULL,
ACL_DISCLOSE, NULL ) ) {
rs->sr_err = LDAP_NO_SUCH_OBJECT;
goto return_results;
}
if ( ! access_allowed( op, e, op->oq_compare.rs_ava->aa_desc,
&op->oq_compare.rs_ava->aa_value,
ACL_COMPARE, NULL ) ) {
......
......@@ -1718,6 +1718,13 @@ backsql_search( Operation *op, SlapReply *rs )
goto done;
}
if ( ! access_allowed( op, bsi.bsi_e, slap_schema.si_ad_entry, NULL,
ACL_DISCLOSE, NULL ) ) {
rs->sr_err = LDAP_NO_SUCH_OBJECT;
send_ldap_result( op, rs );
goto done;
}
bsi.bsi_n_candidates =
( op->ors_limit == NULL /* isroot == TRUE */ ? -2 :
( op->ors_limit->lms_s_unchecked == -1 ? -2 :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment