From: Pierangelo Masarati Date: Wed, 13 Apr 2005 00:00:06 +0000 (+0000) Subject: fix access control when no backend could be found (might need work) X-Git-Tag: OPENLDAP_AC_BP~907 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ec0b3b4b3c469cd789bccefa06c2ac382b0b7ac2;p=openldap fix access control when no backend could be found (might need work) --- diff --git a/servers/slapd/slapacl.c b/servers/slapd/slapacl.c index 5b516c1737..d70c709c00 100644 --- a/servers/slapd/slapacl.c +++ b/servers/slapd/slapacl.c @@ -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;