mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
inherit controls
This commit is contained in:
parent
e2fe9e394a
commit
c67ce5f2e3
@ -97,10 +97,20 @@ relay_back_db_open( Backend *be )
|
|||||||
|
|
||||||
if ( !BER_BVISNULL( &ri->ri_realsuffix ) ) {
|
if ( !BER_BVISNULL( &ri->ri_realsuffix ) ) {
|
||||||
ri->ri_bd = select_backend( &ri->ri_realsuffix, 0, 1 );
|
ri->ri_bd = select_backend( &ri->ri_realsuffix, 0, 1 );
|
||||||
|
|
||||||
/* must be there: it was during config! */
|
/* must be there: it was during config! */
|
||||||
assert( ri->ri_bd );
|
assert( ri->ri_bd );
|
||||||
|
|
||||||
/* FIXME: (somehow) copy supported controls ? */
|
/* inherit controls */
|
||||||
|
if ( ri->ri_bd ) {
|
||||||
|
be->be_controls = ldap_charray_dup( ri->ri_bd->be_controls );
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
/* inherit all? */
|
||||||
|
if ( frontendDB->be_controls ) {
|
||||||
|
be->be_controls = ldap_charray_dup( frontendDB->be_controls );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user