Skip to content
Snippets Groups Projects
Commit dc77524a authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#5724 partial fix

parent cdfcaa9b
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@ OpenLDAP 2.4 Change Log
OpenLDAP 2.4.13 Engineering
Fixed liblutil hex conversion (ITS#5699)
Fixed slapd database open with real structure (ITS#5724)
Added slapd support for certificateListExactMatch from RFC4523 (ITS#5700)
Fixed slapd-bdb/hdb invalid db crash (ITS#5698)
Added slapo-constraint parameter to allow LDAP URI constraints (ITS#5704)
......
......@@ -138,22 +138,25 @@ over_db_open(
{
slap_overinfo *oi = be->bd_info->bi_private;
slap_overinst *on = oi->oi_list;
BackendDB db = *be;
BackendInfo *bi_orig = be->bd_info;
int rc = 0;
db.be_flags |= SLAP_DBFLAG_OVERLAY;
db.bd_info = oi->oi_orig;
if ( db.bd_info->bi_db_open ) {
rc = db.bd_info->bi_db_open( &db, cr );
be->be_flags |= SLAP_DBFLAG_OVERLAY;
be->bd_info = oi->oi_orig;
if ( be->bd_info->bi_db_open ) {
rc = be->bd_info->bi_db_open( be, cr );
}
for (; on && rc == 0; on=on->on_next) {
db.bd_info = &on->on_bi;
if ( db.bd_info->bi_db_open ) {
rc = db.bd_info->bi_db_open( &db, cr );
be->bd_info = &on->on_bi;
if ( be->bd_info->bi_db_open ) {
rc = be->bd_info->bi_db_open( be, cr );
}
}
be->bd_info = bi_orig;
be->be_flags ^= SLAP_DBFLAG_OVERLAY;
return rc;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment