From: Howard Chu Date: Sat, 7 Mar 2009 02:23:20 +0000 (+0000) Subject: ITS#6006 dummy entry needs objectclass attr. (Previous fix to ITS#4961 X-Git-Tag: ACLCHECK_0~729 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=89cfbe3b6e9c77e1e4532a13c8e25e8b07861a8d;p=openldap ITS#6006 dummy entry needs objectclass attr. (Previous fix to ITS#4961 was incomplete. This patch obsoletes the patch for ITS#3616.) --- diff --git a/servers/slapd/back-bdb/init.c b/servers/slapd/back-bdb/init.c index c92ebcef44..885528563f 100644 --- a/servers/slapd/back-bdb/init.c +++ b/servers/slapd/back-bdb/init.c @@ -537,10 +537,15 @@ shm_retry: rc = bdb_id2entry( be, NULL, 0, &e ); } if ( !e ) { + struct berval gluebv = BER_BVC("glue"); e = entry_alloc(); e->e_id = 0; ber_dupbv( &e->e_name, (struct berval *)&slap_empty_bv ); ber_dupbv( &e->e_nname, (struct berval *)&slap_empty_bv ); + attr_merge_one( e, slap_schema.si_ad_objectClass, + &gluebv, NULL ); + attr_merge_one( e, slap_schema.si_ad_structuralObjectClass, + &gluebv, NULL ); } e->e_ocflags = SLAP_OC_GLUE|SLAP_OC__END; e->e_private = &bdb->bi_cache.c_dntree;