From: Pierangelo Masarati Date: Sat, 23 Jul 2005 10:29:40 +0000 (+0000) Subject: fix previous commit (see NOTE and FIXMEs) X-Git-Tag: OPENLDAP_AC_BP~236 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d2b863fa2441eda7bde289b7911db12a3924debf;p=openldap fix previous commit (see NOTE and FIXMEs) --- diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index 4af1cfdb3c..e6ac232628 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -349,9 +349,20 @@ fe_access_allowed( BackendDB *be_orig; int rc; + /* + * NOTE: control gets here if FIXME + * if an appropriate backend cannot be selected for the operation, + * we assume that the frontend should handle this + * FIXME: should select_backend() take care of this, + * and return frontendDB instead of NULL? maybe for some value + * of the flags? + */ be_orig = op->o_bd; op->o_bd = select_backend( &op->o_req_ndn, 0, 0 ); + if ( op->o_bd == NULL ) { + op->o_bd = frontendDB; + } rc = slap_access_allowed( op, e, desc, val, access, state, maskp ); op->o_bd = be_orig;