Skip to content
Snippets Groups Projects
Commit 6a917650 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

add supported controls to backend entries

parent c354bb23
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment