mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
move supported controls listing at backend startup; allow supported controls to be set/mucked in between
This commit is contained in:
parent
5427af1f62
commit
9e6d64a0ad
1 changed files with 14 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue