e = mbe->entry_stub( &ms->mss_dn, &ms->mss_ndn,
&ms->mss_rdn,
- mi->mi_oc_monitorContainer, mi, NULL, NULL );
+ mi->mi_oc_monitorContainer, NULL, NULL );
if ( e == NULL ) {
Debug( LDAP_DEBUG_ANY,
"ldap_back_monitor_conn_init: "
parent = mbe->entry_stub( &ms->mss_dn, &ms->mss_ndn,
&ms->mss_rdn,
- mi->mi_oc_monitorContainer, mi, NULL, NULL );
+ mi->mi_oc_monitorContainer, NULL, NULL );
if ( parent == NULL ) {
Debug( LDAP_DEBUG_ANY,
"ldap_back_monitor_ops_init: "
e = mbe->entry_stub( &parent->e_name, &parent->e_nname,
&ldap_back_monitor_op[op].rdn,
- mi->mi_oc_monitorCounterObject, mi, NULL, NULL );
+ mi->mi_oc_monitorCounterObject, NULL, NULL );
if ( e == NULL ) {
Debug( LDAP_DEBUG_ANY,
"ldap_back_monitor_ops_init: "
struct berval *pndn,
struct berval *rdn,
ObjectClass *oc,
- monitor_info_t *mi,
struct berval *create,
struct berval *modify );
monitor_entry_t * (*entrypriv_create)( void );
bv.bv_val = buf;
e = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn, &bv,
- mi->mi_oc_monitoredObject, mi, NULL, NULL );
+ mi->mi_oc_monitoredObject, NULL, NULL );
if ( e == NULL ) {
Debug( LDAP_DEBUG_ANY,
*/
BER_BVSTR( &bv, "cn=Max File Descriptors" );
e = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn, &bv,
- mi->mi_oc_monitorCounterObject, mi, NULL, NULL );
+ mi->mi_oc_monitorCounterObject, NULL, NULL );
if ( e == NULL ) {
Debug( LDAP_DEBUG_ANY,
*/
BER_BVSTR( &bv, "cn=Total" );
e = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn, &bv,
- mi->mi_oc_monitorCounterObject, mi, NULL, NULL );
+ mi->mi_oc_monitorCounterObject, NULL, NULL );
if ( e == NULL ) {
Debug( LDAP_DEBUG_ANY,
*/
BER_BVSTR( &bv, "cn=Current" );
e = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn, &bv,
- mi->mi_oc_monitorCounterObject, mi, NULL, NULL );
+ mi->mi_oc_monitorCounterObject, NULL, NULL );
if ( e == NULL ) {
Debug( LDAP_DEBUG_ANY,
"cn=Connection %ld", c->c_connid );
bv.bv_val = buf;
e = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn, &bv,
- mi->mi_oc_monitorConnection, mi, &ctmbv, &mtmbv );
+ mi->mi_oc_monitorConnection, &ctmbv, &mtmbv );
if ( e == NULL) {
Debug( LDAP_DEBUG_ANY,
bv.bv_val = buf;
e_overlay = monitor_entry_stub( &e_database->e_name, &e_database->e_nname, &bv,
- mi->mi_oc_monitoredObject, mi, NULL, NULL );
+ mi->mi_oc_monitoredObject, NULL, NULL );
if ( e_overlay == NULL ) {
Debug( LDAP_DEBUG_ANY,
}
e = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn, rdn,
- mi->mi_oc_monitoredObject, mi, NULL, NULL );
+ mi->mi_oc_monitoredObject, NULL, NULL );
if ( e == NULL ) {
Debug( LDAP_DEBUG_ANY,
struct berval *pndn,
struct berval *rdn,
ObjectClass *oc,
- monitor_info_t *mi,
struct berval *create,
struct berval *modify
)
{
+ monitor_info_t *mi;
AttributeDescription *nad = NULL;
Entry *e;
struct berval nat;
const char *text;
int rc;
+ mi = ( monitor_info_t * )be_monitor->be_private;
+
nat = *rdn;
ptr = strchr( nat.bv_val, '=' );
nat.bv_len = ptr - nat.bv_val;
/*
* creates the "cn=Monitor" entry
*/
- e = monitor_entry_stub( NULL, NULL, &rdn, mi->mi_oc_monitorServer, mi,
+ e = monitor_entry_stub( NULL, NULL, &rdn, mi->mi_oc_monitorServer,
NULL, NULL );
if ( e == NULL) {
}
e = monitor_entry_stub( &root->e_name, &root->e_nname,
- &monitor_subsys[ i ]->mss_rdn, mi->mi_oc_monitorContainer, mi,
+ &monitor_subsys[ i ]->mss_rdn, mi->mi_oc_monitorContainer,
NULL, NULL );
if ( e == NULL) {
"cn=Listener %d", i );
bv.bv_val = buf;
e = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn, &bv,
- mi->mi_oc_monitoredObject, mi, NULL, NULL );
+ mi->mi_oc_monitoredObject, NULL, NULL );
if ( e == NULL ) {
Debug( LDAP_DEBUG_ANY,
* Initiated ops
*/
e = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn, &monitor_op[i].rdn,
- mi->mi_oc_monitorOperation, mi, NULL, NULL );
+ mi->mi_oc_monitorOperation, NULL, NULL );
if ( e == NULL ) {
Debug( LDAP_DEBUG_ANY,
bv.bv_len = snprintf( buf, sizeof( buf ), "cn=Overlay %d", i );
bv.bv_val = buf;
e = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn, &bv,
- mi->mi_oc_monitoredObject, mi, NULL, NULL );
+ mi->mi_oc_monitoredObject, NULL, NULL );
if ( e == NULL ) {
Debug( LDAP_DEBUG_ANY,
"monitor_subsys_overlay_init: "
struct berval *pndn,
struct berval *rdn,
ObjectClass *oc,
- monitor_info_t *mi,
struct berval *create,
struct berval *modify ));
Entry *e;
e = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn, &monitor_rww[i].rdn,
- mi->mi_oc_monitorCounterObject, mi, NULL, NULL );
+ mi->mi_oc_monitorCounterObject, NULL, NULL );
if ( e == NULL ) {
Debug( LDAP_DEBUG_ANY,
"monitor_subsys_rww_init: "
e = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn,
&monitor_sent[i].rdn, mi->mi_oc_monitorCounterObject,
- mi, NULL, NULL );
+ NULL, NULL );
if ( e == NULL ) {
Debug( LDAP_DEBUG_ANY,
*/
e = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn,
&mt[ i ].rdn,
- mi->mi_oc_monitoredObject, mi, NULL, NULL );
+ mi->mi_oc_monitoredObject, NULL, NULL );
if ( e == NULL ) {
Debug( LDAP_DEBUG_ANY,
"monitor_subsys_thread_init: "
BER_BVSTR( &bv, "cn=Start" );
e = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn, &bv,
- mi->mi_oc_monitoredObject, mi, NULL, NULL );
+ mi->mi_oc_monitoredObject, NULL, NULL );
if ( e == NULL ) {
Debug( LDAP_DEBUG_ANY,
"monitor_subsys_time_init: "
*/
BER_BVSTR( &bv, "cn=Current" );
e = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn, &bv,
- mi->mi_oc_monitoredObject, mi, NULL, NULL );
+ mi->mi_oc_monitoredObject, NULL, NULL );
if ( e == NULL ) {
Debug( LDAP_DEBUG_ANY,
"monitor_subsys_time_init: "
*/
BER_BVSTR( &bv, "cn=Uptime" );
e = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn, &bv,
- mi->mi_oc_monitoredObject, mi, NULL, NULL );
+ mi->mi_oc_monitoredObject, NULL, NULL );
if ( e == NULL ) {
Debug( LDAP_DEBUG_ANY,
"monitor_subsys_time_init: "