static int monitor_back_add_plugin( Backend *be, Entry *e );
#endif /* defined(LDAP_SLAPI) */
+#if defined(SLAPD_LDAP)
+#include "../back-ldap/back-ldap.h"
+#endif /* defined(SLAPD_LDAP) */
+
int
monitor_subsys_database_init(
BackendDB *be
}
}
+#if defined(SLAPD_LDAP)
+ if ( strcmp( be->bd_info->bi_type, "ldap" ) == 0 ) {
+ struct ldapinfo *li = (struct ldapinfo *)be->be_private;
+ struct berval bv;
+
+ bv.bv_val = li->url;
+ bv.bv_len = strlen( bv.bv_val );
+ attr_merge_normalize_one( e, mi->mi_ad_labeledURI,
+ &bv, NULL );
+ }
+#endif /* defined(SLAPD_LDAP) */
+
for ( j = nBackendInfo; j--; ) {
if ( backendInfo[ j ].bi_type == be->bd_info->bi_type ) {
struct berval bv;
"$ postalCode "
#endif
"$ seeAlso "
+ "$ labeledURI "
"$ monitoredInfo "
"$ managedInfo "
"$ monitorOverlay "
{ NULL, NULL, 0, -1 }, /* description */
{ NULL, NULL, 0, -1 }, /* seeAlso */
{ NULL, NULL, 0, -1 }, /* l */
+ { NULL, NULL, 0, -1 }, /* labeledURI */
#endif /* INTEGRATE_CORE_SCHEMA */
{ NULL, NULL, 0, -1 }
}, mat_core[] = {
"DESC 'RFC2256: locality which this object resides in' "
"SUP name )", 0,
offsetof(struct monitorinfo, mi_ad_l) },
+ { "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(struct monitorinfo, mi_ad_labeledURI) },
{ NULL, NULL, 0, -1 }
};