*/
struct ldap_back_monitor_conn_arg {
+ Operation *op;
monitor_subsys_t *ms;
Entry **ep;
};
{
Entry *e;
monitor_entry_t *mp;
+ monitor_extra_t *mbe;
char buf[SLAP_TEXT_BUFLEN];
char *ptr;
struct berval bv, dn, ndn;
attr_merge_normalize_one( e, ad_olmDbPeerAddress, &bv, NULL );
ch_free( bv.bv_val );
- mp = monitor_entrypriv_create();
+ mbe = (monitor_extra_t *) arg->op->o_bd->bd_info->bi_extra;
+ mp = mbe->entrypriv_create();
e->e_private = mp;
mp->mp_info = arg->ms;
mp->mp_flags = MONITOR_F_SUB | MONITOR_F_VOLATILE;
li = (ldapinfo_t *)ms->mss_private;
arg = ch_calloc( 1, sizeof(struct ldap_back_monitor_conn_arg) );
+ arg->op = op;
arg->ep = ep;
arg->ms = ms;
monitor_back_unregister_entry_attrs,
monitor_back_unregister_entry_callback,
- monitor_back_entry_stub
+ monitor_back_entry_stub,
+ monitor_back_entrypriv_create
};
monitor_entry_t *mp,
int cond ));
extern monitor_entry_t *
-monitor_entrypriv_create LDAP_P((
+monitor_back_entrypriv_create LDAP_P((
void ));
-
extern Entry *
monitor_back_entry_stub LDAP_P((
struct berval *pdn,
struct berval *create,
struct berval *modify ));
+#define monitor_entrypriv_create monitor_back_entrypriv_create
#define monitor_entry_stub monitor_back_entry_stub
/*