mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
s4:torture/drs: 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
75927a5e40
commit
2e93d6f881
@ -98,7 +98,12 @@ static struct DsSyncTest *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->ldap_url = talloc_asprintf(ctx, "ldap://%s", ctx->drsuapi_binding->host);
|
||||
|
||||
|
@ -151,7 +151,13 @@ static struct DsIntIdTestCtx *_dsintid_create_context(struct torture_context *tc
|
||||
return NULL;
|
||||
}
|
||||
|
||||
server_binding->flags |= DCERPC_SIGN | DCERPC_SEAL;
|
||||
status = dcerpc_binding_set_flags(server_binding,
|
||||
DCERPC_SIGN | DCERPC_SEAL, 0);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
torture_result(tctx, TORTURE_FAIL,
|
||||
"dcerpc_binding_set_flags: %s", nt_errstr(status));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* populate test suite context */
|
||||
ctx->creds = cmdline_credentials;
|
||||
|
Loading…
x
Reference in New Issue
Block a user