char *attr = NULL;
int doclose = 0;
BackendDB *bd;
+ void *thrctx;
slap_tool_init( progname, SLAPACL, argc, argv );
argv = &argv[ optind ];
argc -= optind;
- connection_fake_init( &conn, &opbuf, &conn );
+ thrctx = ldap_pvt_thread_pool_context();
+ connection_fake_init( &conn, &opbuf, thrctx );
op = &opbuf.ob_op;
op->o_tmpmemctx = NULL;
Connection conn = {0};
OperationBuffer opbuf;
Operation *op;
+ void *thrctx;
slap_tool_init( progname, SLAPAUTH, argc, argv );
argv = &argv[ optind ];
argc -= optind;
- connection_fake_init( &conn, &opbuf, &conn );
+ thrctx = ldap_pvt_thread_pool_context();
+ connection_fake_init( &conn, &opbuf, thrctx );
op = &opbuf.ob_op;
conn.c_sasl_bind_mech = mech;
Connection conn = { 0 };
OperationBuffer opbuf;
Operation *op = NULL;
+ void *thrctx;
slap_tool_init( progname, SLAPCAT, argc, argv );
exit( EXIT_FAILURE );
}
- connection_fake_init( &conn, &opbuf, &conn );
+ thrctx = ldap_pvt_thread_pool_context();
+ connection_fake_init( &conn, &opbuf, thrctx );
op = &opbuf.ob_op;
op->o_tmpmemctx = NULL;
op->o_bd = be;