From ec0b3b4b3c469cd789bccefa06c2ac382b0b7ac2 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 13 Apr 2005 00:00:06 +0000 Subject: [PATCH] fix access control when no backend could be found (might need work) --- servers/slapd/slapacl.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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; -- 2.39.5