]> git.sur5r.net Git - openldap/commitdiff
silence warning for global scoped global ACLs
authorPierangelo Masarati <ando@openldap.org>
Wed, 12 Jan 2005 00:53:50 +0000 (00:53 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 12 Jan 2005 00:53:50 +0000 (00:53 +0000)
servers/slapd/aclparse.c

index 05b52d25f67cdb3c83cf3ad6b1f886613ffde135..516fa0aaca3c4e971260e30de1d86e86d5d85521 100644 (file)
@@ -177,6 +177,10 @@ check_scope( BackendDB *be, AccessControl *a )
 
        dn = be->be_nsuffix[0];
 
+       if ( BER_BVISEMPTY( &dn ) ) {
+               return ACL_SCOPE_OK;
+       }
+
        if ( !BER_BVISEMPTY( &a->acl_dn_pat ) ||
                        a->acl_dn_style != ACL_STYLE_REGEX )
        {