From 6a917650e86d3b75fb064379b9190c40465cbcd8 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 21 Nov 2002 02:17:24 +0000 Subject: [PATCH] add supported controls to backend entries --- servers/slapd/back-monitor/backend.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; -- 2.39.5