mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Make defaulted backend available to ACL plugin pblock
This commit is contained in:
parent
03e5db818f
commit
c03a70955d
@ -200,6 +200,14 @@ access_allowed(
|
||||
goto done;
|
||||
}
|
||||
|
||||
be = op->o_bd;
|
||||
if ( be == NULL ) {
|
||||
be = &backends[0];
|
||||
be_null = 1;
|
||||
op->o_bd = be;
|
||||
}
|
||||
assert( be != NULL );
|
||||
|
||||
#ifdef LDAP_SLAPI
|
||||
if ( op->o_pb != NULL ) {
|
||||
ret = slapi_int_access_allowed( op, e, desc, val, access, state );
|
||||
@ -210,14 +218,6 @@ access_allowed(
|
||||
}
|
||||
#endif /* LDAP_SLAPI */
|
||||
|
||||
be = op->o_bd;
|
||||
if ( be == NULL ) {
|
||||
be = &backends[0];
|
||||
be_null = 1;
|
||||
op->o_bd = be;
|
||||
}
|
||||
assert( be != NULL );
|
||||
|
||||
/* grant database root access */
|
||||
if ( be != NULL && be_isroot( be, &op->o_ndn ) ) {
|
||||
#ifdef NEW_LOGGING
|
||||
|
Loading…
Reference in New Issue
Block a user