mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
ITS#6006 dummy entry needs objectclass attr. (Previous fix to ITS#4961
was incomplete. This patch obsoletes the patch for ITS#3616.)
This commit is contained in:
parent
7029d640cb
commit
89cfbe3b6e
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue