- e_tmp = NULL;
-
- /*
- * Initiated ops
- */
- snprintf( buf, sizeof( buf ),
- "dn: cn=Initiated,%s\n"
- "objectClass: top\n"
- "objectClass: LDAPsubEntry\n"
-#ifdef SLAPD_MONITORSUBENTRY
- "objectClass: monitorSubEntry\n"
-#else /* !SLAPD_MONITORSUBENTRY */
- "objectClass: extensibleObject\n"
-#endif /* !SLAPD_MONITORSUBENTRY */
- "cn: Initiated\n",
- monitor_subsys[SLAPD_MONITOR_OPS].mss_dn->bv_val );
-
- e = str2entry( buf );
- if ( e == NULL ) {
-#ifdef NEW_LOGGING
- LDAP_LOG(( "operation", LDAP_LEVEL_CRIT,
- "monitor_subsys_ops_init: "
- "unable to create entry 'cn=Initiated,%s'\n",
- monitor_subsys[SLAPD_MONITOR_OPS].mss_ndn->bv_val ));
-#else
- Debug( LDAP_DEBUG_ANY,
- "monitor_subsys_ops_init: "
- "unable to create entry 'cn=Initiated,%s'\n%s%s",
- monitor_subsys[SLAPD_MONITOR_OPS].mss_ndn->bv_val,
- "", "" );
-#endif
- return( -1 );
- }
-
- bv[1].bv_val = NULL;
- bv[0].bv_val = "0";
- bv[0].bv_len = 1;
- attr_merge( e, monitor_ad_desc, bv );
-
- mp = ( struct monitorentrypriv * )ch_calloc( sizeof( struct monitorentrypriv ), 1 );
- e->e_private = ( void * )mp;
- mp->mp_next = e_tmp;
- mp->mp_children = NULL;
- mp->mp_info = &monitor_subsys[SLAPD_MONITOR_OPS];
- mp->mp_flags = monitor_subsys[SLAPD_MONITOR_OPS].mss_flags \
- | MONITOR_F_SUB | MONITOR_F_PERSISTENT;
+ attr_merge_one( e_op, mi->mi_ad_monitorOpInitiated, &bv_zero, &bv_zero );
+ attr_merge_one( e_op, mi->mi_ad_monitorOpCompleted, &bv_zero, &bv_zero );