From: Pierangelo Masarati Date: Thu, 21 Nov 2002 02:17:24 +0000 (+0000) Subject: add supported controls to backend entries X-Git-Tag: NO_SLAP_OP_BLOCKS~790 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6a917650e86d3b75fb064379b9190c40465cbcd8;p=openldap add supported controls to backend entries --- diff --git a/servers/slapd/back-monitor/backend.c b/servers/slapd/back-monitor/backend.c index d147929abe..987c2b348b 100644 --- a/servers/slapd/back-monitor/backend.c +++ b/servers/slapd/back-monitor/backend.c @@ -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;