mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
publish updateref...
This commit is contained in:
parent
be53e82650
commit
f505aec4bc
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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 }
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user