mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-10 06:13:19 -05:00
add supported controls to backend entries
This commit is contained in:
parent
c354bb23bf
commit
6a917650e8
1 changed files with 10 additions and 0 deletions
|
|
@ -112,6 +112,16 @@ monitor_subsys_backend_init(
|
|||
|
||||
attr_merge( e, monitor_ad_desc, bv );
|
||||
attr_merge( e_backend, monitor_ad_desc, bv );
|
||||
|
||||
if ( bi->bi_controls ) {
|
||||
int j;
|
||||
|
||||
for ( j = 0; bi->bi_controls[ j ]; j++ ) {
|
||||
bv[0].bv_val = bi->bi_controls[ j ];
|
||||
bv[0].bv_len = strlen( bv[0].bv_val );
|
||||
attr_merge( e, slap_schema.si_ad_supportedControl, bv );
|
||||
}
|
||||
}
|
||||
|
||||
mp = ( struct monitorentrypriv * )ch_calloc( sizeof( struct monitorentrypriv ), 1 );
|
||||
e->e_private = ( void * )mp;
|
||||
|
|
|
|||
Loading…
Reference in a new issue