mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Revert "ITS#6688 enforce search ACL in back-perl"
This reverts commit 53bb95a2e3
.
Code was working as designed/documented. Changing now will
probably break other users.
This commit is contained in:
parent
53bb95a2e3
commit
68c7d375da
@ -35,27 +35,6 @@ perl_back_search(
|
||||
int i;
|
||||
|
||||
PERL_SET_CONTEXT( PERL_INTERPRETER );
|
||||
|
||||
{
|
||||
Entry base = {0};
|
||||
slap_mask_t mask;
|
||||
/* Require search access to base */
|
||||
base.e_name = op->o_req_dn;
|
||||
base.e_nname = op->o_req_ndn;
|
||||
if ( !access_allowed_mask( op, &base, slap_schema.si_ad_entry,
|
||||
NULL, ACL_SEARCH, NULL, &mask ))
|
||||
{
|
||||
if ( !ACL_GRANT( mask, ACL_DISCLOSE )) {
|
||||
rs->sr_err = LDAP_NO_SUCH_OBJECT;
|
||||
} else {
|
||||
rs->sr_err = LDAP_INSUFFICIENT_ACCESS;
|
||||
}
|
||||
|
||||
send_ldap_result( op, rs );
|
||||
return rs->sr_err;
|
||||
}
|
||||
}
|
||||
|
||||
ldap_pvt_thread_mutex_lock( &perl_interpreter_mutex );
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user