1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3:lib/netapi: make use of dcerpc_binding_handle_transport_session_key()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Stefan Metzmacher 2024-09-14 15:51:20 +02:00 committed by Ralph Boehme
parent bbe529a2f6
commit 2cb726e92c
2 changed files with 12 additions and 6 deletions

View File

@ -145,7 +145,8 @@ WERROR NetJoinDomain_r(struct libnetapi_ctx *ctx,
if (r->in.password) {
status = cli_get_session_key(talloc_tos(), pipe_cli, &session_key);
status = dcerpc_binding_handle_transport_session_key(
b, talloc_tos(), &session_key);
if (!NT_STATUS_IS_OK(status)) {
werr = ntstatus_to_werror(status);
goto done;
@ -300,7 +301,8 @@ WERROR NetUnjoinDomain_r(struct libnetapi_ctx *ctx,
if (r->in.password) {
status = cli_get_session_key(talloc_tos(), pipe_cli, &session_key);
status = dcerpc_binding_handle_transport_session_key(
b, talloc_tos(), &session_key);
if (!NT_STATUS_IS_OK(status)) {
werr = ntstatus_to_werror(status);
goto done;
@ -518,7 +520,8 @@ WERROR NetGetJoinableOUs_r(struct libnetapi_ctx *ctx,
if (r->in.password) {
status = cli_get_session_key(talloc_tos(), pipe_cli, &session_key);
status = dcerpc_binding_handle_transport_session_key(
b, talloc_tos(), &session_key);
if (!NT_STATUS_IS_OK(status)) {
werr = ntstatus_to_werror(status);
goto done;
@ -574,7 +577,8 @@ WERROR NetRenameMachineInDomain_r(struct libnetapi_ctx *ctx,
if (r->in.password) {
status = cli_get_session_key(talloc_tos(), pipe_cli, &session_key);
status = dcerpc_binding_handle_transport_session_key(
b, talloc_tos(), &session_key);
if (!NT_STATUS_IS_OK(status)) {
werr = ntstatus_to_werror(status);
goto done;

View File

@ -477,7 +477,8 @@ WERROR NetUserAdd_r(struct libnetapi_ctx *ctx,
goto done;
}
status = cli_get_session_key(talloc_tos(), pipe_cli, &session_key);
status = dcerpc_binding_handle_transport_session_key(
b, talloc_tos(), &session_key);
if (!NT_STATUS_IS_OK(status)) {
werr = ntstatus_to_werror(status);
goto done;
@ -1953,7 +1954,8 @@ WERROR NetUserSetInfo_r(struct libnetapi_ctx *ctx,
goto done;
}
status = cli_get_session_key(talloc_tos(), pipe_cli, &session_key);
status = dcerpc_binding_handle_transport_session_key(
b, talloc_tos(), &session_key);
if (!NT_STATUS_IS_OK(status)) {
werr = ntstatus_to_werror(status);
goto done;