]> git.sur5r.net Git - openldap/commitdiff
add supported controls to backend entries
authorPierangelo Masarati <ando@openldap.org>
Thu, 21 Nov 2002 02:17:24 +0000 (02:17 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 21 Nov 2002 02:17:24 +0000 (02:17 +0000)
servers/slapd/back-monitor/backend.c

index d147929abe6027f6682651a4d5ecf0da48f743a0..987c2b348be1188eb1699d9efebdb51df5382ffd 100644 (file)
@@ -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;