From: Pierangelo Masarati Date: Tue, 16 Mar 2004 22:18:45 +0000 (+0000) Subject: seeAlso to overlays as well X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~265 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fc28663a14bba811ad06e8efba619804924ec8b8;p=openldap seeAlso to overlays as well --- diff --git a/servers/slapd/back-monitor/database.c b/servers/slapd/back-monitor/database.c index 4988d7e3f3..83677d9100 100644 --- a/servers/slapd/back-monitor/database.c +++ b/servers/slapd/back-monitor/database.c @@ -137,11 +137,27 @@ monitor_subsys_database_init( for ( ; on; on = on->on_next ) { struct berval bv; + slap_overinst *on2; bv.bv_val = on->on_bi.bi_type; bv.bv_len = strlen( bv.bv_val ); attr_merge_normalize_one( e, mi->mi_ad_monitorOverlay, &bv, NULL ); + + for ( on2 = overlay_next( NULL ), j = 0; on2; on2 = overlay_next( on2 ), j++ ) { + if ( on2->on_bi.bi_type == on->on_bi.bi_type ) { + break; + } + } + assert( on2 ); + + snprintf( buf, sizeof( buf ), + "cn=Overlay %d,%s", + j, monitor_subsys[SLAPD_MONITOR_OVERLAY].mss_dn.bv_val ); + bv.bv_val = buf; + bv.bv_len = strlen( buf ); + attr_merge_normalize_one( e, mi->mi_ad_seeAlso, + &bv, NULL ); } }