mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
add "monitorIsShadow" (ITS#3696); more to come (see discussion)
This commit is contained in:
parent
1ac4df71c9
commit
2c8829b8ca
@ -120,6 +120,7 @@ typedef struct monitor_info_t {
|
||||
AttributeDescription *mi_ad_monitorConnectionPeerDomain;
|
||||
AttributeDescription *mi_ad_monitorConnectionStartTime;
|
||||
AttributeDescription *mi_ad_monitorConnectionActivityTime;
|
||||
AttributeDescription *mi_ad_monitorIsShadow;
|
||||
|
||||
/*
|
||||
* Generic description attribute
|
||||
|
@ -196,17 +196,20 @@ monitor_subsys_database_init(
|
||||
"structuralObjectClass: %s\n"
|
||||
"cn: Database %d\n"
|
||||
"%s: %s\n"
|
||||
"%s: %s\n"
|
||||
"creatorsName: %s\n"
|
||||
"modifiersName: %s\n"
|
||||
"createTimestamp: %s\n"
|
||||
"modifyTimestamp: %s\n",
|
||||
i,
|
||||
ms->mss_dn.bv_val,
|
||||
ms->mss_dn.bv_val,
|
||||
mi->mi_oc_monitoredObject->soc_cname.bv_val,
|
||||
mi->mi_oc_monitoredObject->soc_cname.bv_val,
|
||||
i,
|
||||
mi->mi_ad_monitoredInfo->ad_cname.bv_val,
|
||||
bi->bi_type,
|
||||
bi->bi_type,
|
||||
mi->mi_ad_monitorIsShadow->ad_cname.bv_val,
|
||||
SLAP_SHADOW( be ) ? slap_true_bv.bv_val : slap_false_bv.bv_val,
|
||||
mi->mi_creatorsName.bv_val,
|
||||
mi->mi_creatorsName.bv_val,
|
||||
mi->mi_startTime.bv_val,
|
||||
@ -221,7 +224,7 @@ monitor_subsys_database_init(
|
||||
return( -1 );
|
||||
}
|
||||
|
||||
if ( SLAP_MONITOR(be) ) {
|
||||
if ( SLAP_MONITOR( be ) ) {
|
||||
attr_merge( e, slap_schema.si_ad_monitorContext,
|
||||
be->be_suffix, be->be_nsuffix );
|
||||
attr_merge( e_database, slap_schema.si_ad_monitorContext,
|
||||
|
@ -1158,6 +1158,14 @@ monitor_back_initialize(
|
||||
"NO-USER-MODIFICATION "
|
||||
"USAGE directoryOperation )", SLAP_AT_FINAL|SLAP_AT_HIDE,
|
||||
offsetof(monitor_info_t, mi_ad_monitorConnectionActivityTime) },
|
||||
{ "monitorIsShadow", "( 1.3.6.1.4.1.4203.666.1.52 "
|
||||
"NAME 'monitorIsShadow' "
|
||||
"DESC 'TRUE if the database is shadow' "
|
||||
"EQUALITY booleanMatch "
|
||||
"SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 "
|
||||
"SINGLE-VALUE "
|
||||
"USAGE directoryOperation )", SLAP_AT_HIDE,
|
||||
offsetof(monitor_info_t, mi_ad_monitorIsShadow) },
|
||||
{ NULL, NULL, 0, -1 }
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user