1
0
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:
Stefan Metzmacher 2014-02-04 10:05:29 +01:00 committed by Günther Deschner
parent 75927a5e40
commit 2e93d6f881
2 changed files with 13 additions and 2 deletions

View File

@ -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);

View File

@ -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;