mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
s4:torture/drs: make use of dcerpc_binding_handle_auth_session_key()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
38874d2840
commit
bbe529a2f6
@ -708,8 +708,9 @@ static bool test_GetNCChanges(struct torture_context *tctx,
|
||||
dump_data_pw("CREDENTIALS nthash:", nthash->hash, sizeof(nthash->hash));
|
||||
}
|
||||
}
|
||||
status = gensec_session_key(ctx->new_dc.drsuapi.drs_pipe->conn->security_state.generic_state,
|
||||
ctx, &gensec_skey);
|
||||
status = dcerpc_binding_handle_auth_session_key(ctx->new_dc.drsuapi.drs_handle,
|
||||
ctx,
|
||||
&gensec_skey);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
printf("failed to get gensec session key: %s\n", nt_errstr(status));
|
||||
return false;
|
||||
|
@ -217,8 +217,9 @@ static bool _test_DsaBind(struct torture_context *tctx,
|
||||
|
||||
bi->drs_handle = bi->drs_pipe->binding_handle;
|
||||
|
||||
status = gensec_session_key(bi->drs_pipe->conn->security_state.generic_state,
|
||||
mem_ctx, &bi->gensec_skey);
|
||||
status = dcerpc_binding_handle_auth_session_key(bi->drs_handle,
|
||||
mem_ctx,
|
||||
&bi->gensec_skey);
|
||||
torture_assert_ntstatus_ok(tctx, status, "failed to get gensec session key");
|
||||
|
||||
/* Bind to DRSUAPI interface */
|
||||
|
Loading…
x
Reference in New Issue
Block a user