diff --git a/source4/torture/drs/rpc/dssync.c b/source4/torture/drs/rpc/dssync.c index d367b095333..3e17800c666 100644 --- a/source4/torture/drs/rpc/dssync.c +++ b/source4/torture/drs/rpc/dssync.c @@ -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); diff --git a/source4/torture/drs/rpc/msds_intid.c b/source4/torture/drs/rpc/msds_intid.c index 6c6153263da..5c2bce4a759 100644 --- a/source4/torture/drs/rpc/msds_intid.c +++ b/source4/torture/drs/rpc/msds_intid.c @@ -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;