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

This commit is contained in:
Pierangelo Masarati 2005-04-13 00:00:06 +00:00
parent 98294f1125
commit ec0b3b4b3c

View file

@ -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;