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

fix access control when no backend could be found (might need work)

parent 98294f11
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment