From: Pierangelo Masarati Date: Sat, 21 May 2005 14:54:11 +0000 (+0000) Subject: publish updateref... X-Git-Tag: OPENLDAP_AC_BP~619 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f505aec4bcb58f08dd0bec0af992bbe12629c584;p=openldap publish updateref... --- 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 } };