LDAP_BEGIN_DECL
+/* define if si_ad_labeledURI is removed from slap_schema */
+#undef MONITOR_DEFINE_LABELEDURI
+
typedef struct monitor_callback_t {
int (*mc_update)( Operation *op, Entry *e, void *priv );
/* update callback
AttributeDescription *mi_ad_description;
AttributeDescription *mi_ad_seeAlso;
AttributeDescription *mi_ad_l;
+#ifdef MONITOR_DEFINE_LABELEDURI
+ /* enable if si_ad_labeledURI is removed from slap_schema */
AttributeDescription *mi_ad_labeledURI;
+#endif /* MONITOR_DEFINE_LABELEDURI */
AttributeDescription *mi_ad_readOnly;
AttributeDescription *mi_ad_restrictedOperation;
bv.bv_val = li->url;
bv.bv_len = strlen( bv.bv_val );
- attr_merge_normalize_one( e, mi->mi_ad_labeledURI,
+ attr_merge_normalize_one( e, slap_schema.si_ad_labeledURI,
&bv, NULL );
}
#endif /* defined(SLAPD_LDAP) */
Operation op = { 0 };
SlapReply rs = { 0 };
slap_callback cb = { NULL, monitor_filter2ndn_cb, NULL, NULL };
- AttributeName anlist[ 2 ] = { { 0 }, { 0 } };
+ AttributeName anlist[ 2 ];
int rc;
BER_BVZERO( ndn );
op.ors_filter = str2filter_x( &op, filter->bv_val );
op.ors_attrs = anlist;
BER_BVSTR( &anlist[ 0 ].an_name, LDAP_NO_ATTRS );
+ BER_BVZERO( &anlist[ 1 ].an_name );
op.ors_attrsonly = 0;
op.ors_tlimit = SLAP_NO_LIMIT;
op.ors_slimit = 1;
"DESC 'RFC2256: locality which this object resides in' "
"SUP name )", 0,
offsetof(monitor_info_t, mi_ad_l) },
+#ifdef MONITOR_DEFINE_LABELEDURI
{ "labeledURI", "( 1.3.6.1.4.1.250.1.57 "
"NAME 'labeledURI' "
"DESC 'RFC2079: Uniform Resource Identifier with optional label' "
"EQUALITY caseExactMatch "
"SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )", 0,
offsetof(monitor_info_t, mi_ad_labeledURI) },
+#endif /* MONITOR_DEFINE_LABELEDURI */
{ NULL, NULL, 0, -1 }
};