mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4:torture/rpc: make use of dcerpc_binding_set_flags()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
parent
26c2a27c2d
commit
75927a5e40
@ -510,7 +510,10 @@ static struct bkrp_BackupKey *createRetreiveBackupKeyGUIDStruct(struct torture_c
|
||||
return NULL;
|
||||
}
|
||||
|
||||
binding->flags = binding->flags & (DCERPC_SEAL|DCERPC_AUTH_SPNEGO);
|
||||
status = dcerpc_binding_set_flags(binding, DCERPC_SEAL|DCERPC_AUTH_SPNEGO, 0);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ZERO_STRUCT(data);
|
||||
status = GUID_from_string(BACKUPKEY_RETRIEVE_BACKUP_KEY_GUID, g);
|
||||
|
@ -127,7 +127,11 @@ static struct DsGetinfoTest *test_create_context(struct torture_context *tctx)
|
||||
printf("Bad binding string %s\n", binding);
|
||||
return NULL;
|
||||
}
|
||||
ctx->drsuapi_binding->flags |= DCERPC_SIGN | DCERPC_SEAL;
|
||||
status = dcerpc_binding_set_flags(ctx->drsuapi_binding, DCERPC_SIGN | DCERPC_SEAL, 0);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
printf("dcerpc_binding_set_flags - %s\n", nt_errstr(status));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* ctx->admin ...*/
|
||||
ctx->admin.credentials = cmdline_credentials;
|
||||
|
@ -161,7 +161,8 @@ static bool test_secrets(struct torture_context *torture, const void *_data)
|
||||
torture_assert_ntstatus_ok(torture, torture_rpc_binding(torture, &binding),
|
||||
"Getting bindoptions");
|
||||
|
||||
binding->flags |= settings->bindoptions;
|
||||
status = dcerpc_binding_set_flags(binding, settings->bindoptions, 0);
|
||||
torture_assert_ntstatus_ok(torture, status, "dcerpc_binding_set_flags");
|
||||
|
||||
status = dcerpc_pipe_connect_b(torture, &p, binding,
|
||||
&ndr_table_lsarpc,
|
||||
|
Loading…
Reference in New Issue
Block a user