]> git.sur5r.net Git - openldap/commitdiff
publish updateref...
authorPierangelo Masarati <ando@openldap.org>
Sat, 21 May 2005 14:54:11 +0000 (14:54 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 21 May 2005 14:54:11 +0000 (14:54 +0000)
servers/slapd/back-monitor/back-monitor.h
servers/slapd/back-monitor/database.c
servers/slapd/back-monitor/init.c

index 511c4c48abe57fb6a20fe48a5931a436c202e374..8cd40f186b748a492bf06880741071bdf20e2bd0 100644 (file)
@@ -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
index 267042d8ee21a16cf2dda0fbb8951efa09ccc5fb..f6d5d94a800c360b2b84911b698ef4e33e5e02da 100644 (file)
@@ -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;
index 08ce16f5fd98f4ed4ee02cdc48015f27782a894d..df6a08a99006f8d4b18d3e243d79386e521b432b 100644 (file)
@@ -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 }
        };