From: Pierangelo Masarati Date: Sat, 29 Jan 2005 18:38:44 +0000 (+0000) Subject: make the glue database inherit the controls of the subordinates (doesn't fix test033... X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~221 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9d11324e96535541317a16e8ab99dfee822bdfe5;p=openldap make the glue database inherit the controls of the subordinates (doesn't fix test033 though) --- diff --git a/servers/slapd/overlays/glue.c b/servers/slapd/overlays/glue.c index 1686a905c6..e523e2864d 100644 --- a/servers/slapd/overlays/glue.c +++ b/servers/slapd/overlays/glue.c @@ -701,7 +701,15 @@ glue_db_open ( int i; for ( i=0; igi_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; }