From f505aec4bcb58f08dd0bec0af992bbe12629c584 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 21 May 2005 14:54:11 +0000 Subject: [PATCH] publish updateref... --- servers/slapd/back-monitor/back-monitor.h | 1 + servers/slapd/back-monitor/database.c | 5 +++++ servers/slapd/back-monitor/init.c | 7 +++++++ 3 files changed, 13 insertions(+) diff --git a/servers/slapd/back-monitor/back-monitor.h b/servers/slapd/back-monitor/back-monitor.h index 511c4c48ab..8cd40f186b 100644 --- a/servers/slapd/back-monitor/back-monitor.h +++ b/servers/slapd/back-monitor/back-monitor.h @@ -121,6 +121,7 @@ typedef struct monitor_info_t { AttributeDescription *mi_ad_monitorConnectionStartTime; AttributeDescription *mi_ad_monitorConnectionActivityTime; AttributeDescription *mi_ad_monitorIsShadow; + AttributeDescription *mi_ad_monitorUpdateRef; /* * Generic description attribute diff --git a/servers/slapd/back-monitor/database.c b/servers/slapd/back-monitor/database.c index 267042d8ee..f6d5d94a80 100644 --- a/servers/slapd/back-monitor/database.c +++ b/servers/slapd/back-monitor/database.c @@ -247,6 +247,11 @@ monitor_subsys_database_init( (void)init_readOnly( mi, e, be->be_restrictops ); (void)init_restrictedOperation( mi, e, be->be_restrictops ); + if ( SLAP_SHADOW( be ) && be->be_update_refs ) { + attr_merge_normalize( e, mi->mi_ad_monitorUpdateRef, + be->be_update_refs, NULL ); + } + if ( oi != NULL ) { slap_overinst *on = oi->oi_list, *on1 = on; diff --git a/servers/slapd/back-monitor/init.c b/servers/slapd/back-monitor/init.c index 08ce16f5fd..df6a08a990 100644 --- a/servers/slapd/back-monitor/init.c +++ b/servers/slapd/back-monitor/init.c @@ -1166,6 +1166,13 @@ monitor_back_initialize( "SINGLE-VALUE " "USAGE directoryOperation )", SLAP_AT_HIDE, offsetof(monitor_info_t, mi_ad_monitorIsShadow) }, + { "monitorUpdateRef", "( 1.3.6.1.4.1.4203.666.1.53 " + "NAME 'monitorUpdateRef' " + "DESC 'update referral for shadow databases' " + "SUP monitoredInfo " + "SINGLE-VALUE " + "USAGE directoryOperation )", SLAP_AT_HIDE, + offsetof(monitor_info_t, mi_ad_monitorUpdateRef) }, { NULL, NULL, 0, -1 } }; -- 2.39.5