Commit 9e6d64a0 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

move supported controls listing at backend startup; allow supported controls...

move supported controls listing at backend startup; allow supported controls to be set/mucked in between
parent 5427af1f
......@@ -185,6 +185,20 @@ int backend_startup_one(Backend *be)
rc, 0, 0 );
}
}
/* back-relay takes care of itself; so may do other */
if ( be->be_controls == NULL ) {
BackendInfo *bi = be->bd_info;
if ( overlay_is_over( be ) ) {
bi = ((slap_overinfo *)be->bd_info->bi_private)->oi_orig;
}
if ( bi->bi_controls ) {
be->be_controls = ldap_charray_dup( bi->bi_controls );
}
}
return rc;
}
......@@ -504,10 +518,6 @@ backend_db_init(
be->bd_info = bi;
if ( bi->bi_controls ) {
be->be_controls = ldap_charray_dup( bi->bi_controls );
}
be->be_def_limit = frontendDB->be_def_limit;
be->be_dfltaccess = frontendDB->be_dfltaccess;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment