mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 01:59:38 -05:00
add new isroot_dn helper
This commit is contained in:
parent
f3ee96399e
commit
b89c894eff
1 changed files with 7 additions and 1 deletions
|
|
@ -747,13 +747,19 @@ be_root_dn( Backend *be )
|
|||
return &be->be_rootdn;
|
||||
}
|
||||
|
||||
int
|
||||
be_isroot_dn( Operation *op )
|
||||
{
|
||||
return be_isroot( op->o_bd, &op->o_ndn );
|
||||
}
|
||||
|
||||
int
|
||||
be_isroot_pw( Operation *op )
|
||||
{
|
||||
int result;
|
||||
char *errmsg;
|
||||
|
||||
if ( ! be_isroot( op->o_bd, &op->o_req_ndn ) ) {
|
||||
if ( ! be_isroot_dn( op ) ) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue