- e_tmp = NULL;
-
- /*
- * Initiated ops
- */
- snprintf( buf, sizeof( buf ),
- "dn: cn=%s,%s\n"
- SLAPD_MONITOR_OBJECTCLASSES
- "cn: %s\n",
- bv_initiated.bv_val,
- monitor_subsys[SLAPD_MONITOR_OPS].mss_dn.bv_val,
- bv_initiated.bv_val );
-
- e = str2entry( buf );
- if ( e == NULL ) {
-#ifdef NEW_LOGGING
- LDAP_LOG( OPERATION, CRIT,
- "monitor_subsys_ops_init: "
- "unable to create entry 'cn=%s,%s'\n",
- bv_initiated.bv_val,
- monitor_subsys[SLAPD_MONITOR_OPS].mss_ndn.bv_val, 0 );
-#else
- Debug( LDAP_DEBUG_ANY,
- "monitor_subsys_ops_init: "
- "unable to create entry 'cn=%s,%s'\n%s",
- bv_initiated.bv_val,
- monitor_subsys[SLAPD_MONITOR_OPS].mss_ndn.bv_val,
- "" );
-#endif
- return( -1 );
- }
-
- bv.bv_val = "0";
- bv.bv_len = 1;
- attr_merge_one( e, monitor_ad_desc, &bv, NULL );
-
- 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 );