]> git.sur5r.net Git - openldap/commitdiff
make the glue database inherit the controls of the subordinates (doesn't fix test033...
authorPierangelo Masarati <ando@openldap.org>
Sat, 29 Jan 2005 18:38:44 +0000 (18:38 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 29 Jan 2005 18:38:44 +0000 (18:38 +0000)
servers/slapd/overlays/glue.c

index 1686a905c67b4ae41b3423ab006e18dc54962121..e523e2864d89c57c04d9549dc18805e2366df2df 100644 (file)
@@ -701,7 +701,15 @@ glue_db_open (
        int i;
 
        for ( i=0; i<gi->gi_nodes; i++ ) {
+               int j;
+
                gi->gi_n[i].gn_be = backendDB + gi->gi_n[i].gn_bx;
+
+               for ( j = 0; j < SLAP_MAX_CIDS; j++ ) {
+                       if ( gi->gi_n[i].gn_be->be_ctrls[ j ] ) {
+                               be->be_ctrls[ j ] = gi->gi_n[i].gn_be->be_ctrls[ j ];
+                       }
+               }
        }
        return 0;
 }