mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
fix access control when no backend could be found (might need work)
This commit is contained in:
parent
98294f1125
commit
ec0b3b4b3c
1 changed files with 9 additions and 0 deletions
|
|
@ -86,6 +86,8 @@ slapacl( int argc, char **argv )
|
|||
rc = 1;
|
||||
goto destroy;
|
||||
}
|
||||
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -213,6 +215,13 @@ slapacl( int argc, char **argv )
|
|||
}
|
||||
|
||||
op->o_bd = be;
|
||||
if ( op->o_bd == NULL ) {
|
||||
/* NOTE: if no database could be found (e.g. because
|
||||
* accessing the rootDSE or so), use the frontendDB
|
||||
* rules; might need work */
|
||||
op->o_bd = frontendDB;
|
||||
}
|
||||
|
||||
if ( !dryrun && be ) {
|
||||
ID id;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue