]> git.sur5r.net Git - openldap/commitdiff
Don't emit global ACLs for other database than frontendDB (ITS#5352)
authorRalf Haferkamp <ralf@openldap.org>
Tue, 5 Feb 2008 12:16:21 +0000 (12:16 +0000)
committerRalf Haferkamp <ralf@openldap.org>
Tue, 5 Feb 2008 12:16:21 +0000 (12:16 +0000)
servers/slapd/bconfig.c

index 1a265594caec4cfa41f764be8212d0a5f388a41e..0be46d6b607ff693003323ab09d1b5a3d97f27d6 100644 (file)
@@ -940,7 +940,12 @@ config_generic(ConfigArgs *c) {
                        AccessControl *a;
                        char *src, *dst, ibuf[11];
                        struct berval bv, abv;
-                       for (i=0, a=c->be->be_acl; a; i++,a=a->acl_next) {
+                       AccessControl *end;
+                       if ( c->be == frontendDB )
+                               end = NULL;
+                       else
+                               end = frontendDB->be_acl;
+                       for (i=0, a=c->be->be_acl; a && a != end; i++,a=a->acl_next) {
                                abv.bv_len = snprintf( ibuf, sizeof( ibuf ), SLAP_X_ORDERED_FMT, i );
                                if ( abv.bv_len >= sizeof( ibuf ) ) {
                                        ber_bvarray_free_x( c->rvalue_vals, NULL );