From: Howard Chu Date: Sat, 7 Mar 2009 02:46:10 +0000 (+0000) Subject: More for prev commit - fill in other opattrs when creating stub X-Git-Tag: ACLCHECK_0~727 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=df64b0573c07b1d38ca4c61ca8ba2f8f3feb5d59;p=openldap More for prev commit - fill in other opattrs when creating stub --- diff --git a/servers/slapd/back-bdb/init.c b/servers/slapd/back-bdb/init.c index 885528563f..02ab2271de 100644 --- a/servers/slapd/back-bdb/init.c +++ b/servers/slapd/back-bdb/init.c @@ -538,6 +538,8 @@ shm_retry: } if ( !e ) { struct berval gluebv = BER_BVC("glue"); + Operation op = {0}; + Opheader ohdr = {0}; e = entry_alloc(); e->e_id = 0; ber_dupbv( &e->e_name, (struct berval *)&slap_empty_bv ); @@ -546,6 +548,12 @@ shm_retry: &gluebv, NULL ); attr_merge_one( e, slap_schema.si_ad_structuralObjectClass, &gluebv, NULL ); + op.o_hdr = &ohdr; + op.o_bd = be; + op.ora_e = e; + op.o_dn = be->be_rootdn; + op.o_ndn = be->be_rootndn; + slap_add_opattrs( &op, NULL, NULL, 0, 0 ); } e->e_ocflags = SLAP_OC_GLUE|SLAP_OC__END; e->e_private = &bdb->bi_cache.c_dntree;