talloc_free(). We need the messaging_ctx to allow for
pending lock notifications.
*/
-static struct brl_context *brl_ctdb_init(TALLOC_CTX *mem_ctx, struct server_id server,
+static struct brl_context *brl_ctdb_init(TALLOC_CTX *mem_ctx, struct server_id server, struct loadparm_context *lp_ctx,
struct messaging_context *messaging_ctx)
{
struct ctdb_context *ctdb = talloc_get_type(cluster_backend_handle(),
TALLOC_CTX *mem_ctx;
struct libnet_context *ctx;
struct libnet_Lookup lookup;
- struct dcerpc_binding *bind;
+ struct dcerpc_binding *binding;
mem_ctx = talloc_init("test_lookup");
lookup.in.hostname = torture_setting_string(torture, "host", NULL);
if (lookup.in.hostname == NULL) {
- status = torture_rpc_binding(torture, &bind);
+ status = torture_rpc_binding(torture, &binding);
if (NT_STATUS_IS_OK(status)) {
- lookup.in.hostname = bind->host;
+ lookup.in.hostname = binding->host;
}
}
TALLOC_CTX *mem_ctx;
struct libnet_context *ctx;
struct libnet_Lookup lookup;
- struct dcerpc_binding *bind;
+ struct dcerpc_binding *binding;
mem_ctx = talloc_init("test_lookup_host");
lookup.in.hostname = torture_setting_string(torture, "host", NULL);
if (lookup.in.hostname == NULL) {
- status = torture_rpc_binding(torture, &bind);
+ status = torture_rpc_binding(torture, &binding);
if (NT_STATUS_IS_OK(status)) {
- lookup.in.hostname = bind->host;
+ lookup.in.hostname = binding->host;
}
}
int i;
bool ret = true;
struct libnet_context* libnetctx;
- struct dcerpc_binding *bind;
+ struct dcerpc_binding *binding;
TALLOC_CTX *mem_ctx;
mem_ctx = talloc_init("test_listshares");
- status = torture_rpc_binding(torture, &bind);
+ status = torture_rpc_binding(torture, &binding);
if (!NT_STATUS_IS_OK(status)) {
ret = false;
goto done;
printf("Testing libnet_ListShare\n");
- share.in.server_name = talloc_asprintf(mem_ctx, "%s", bind->host);
+ share.in.server_name = talloc_asprintf(mem_ctx, "%s", binding->host);
for (i = 0; i < ARRAY_SIZE(levels); i++) {
share.in.level = levels[i];
bool torture_delshare(struct torture_context *torture)
{
struct dcerpc_pipe *p;
- struct dcerpc_binding *bind;
+ struct dcerpc_binding *binding;
struct libnet_context* libnetctx;
const char *host;
NTSTATUS status;
struct libnet_DelShare share;
host = torture_setting_string(torture, "host", NULL);
- status = torture_rpc_binding(torture, &bind);
+ status = torture_rpc_binding(torture, &binding);
torture_assert_ntstatus_ok(torture, status, "Failed to get binding");
libnetctx = libnet_context_init(NULL, torture->lp_ctx);
return false;
}
- share.in.server_name = bind->host;
+ share.in.server_name = binding->host;
share.in.share_name = TEST_SHARENAME;
status = libnet_DelShare(libnetctx, torture, &share);
bool torture_modifyuser(struct torture_context *torture)
{
NTSTATUS status;
- struct dcerpc_binding *bind;
+ struct dcerpc_binding *binding;
struct dcerpc_pipe *p;
TALLOC_CTX *prep_mem_ctx;
struct policy_handle h;
goto done;
}
- status = torture_rpc_binding(torture, &bind);
+ status = torture_rpc_binding(torture, &binding);
if (!NT_STATUS_IS_OK(status)) {
ret = false;
goto done;