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:
parent
bbe529a2f6
commit
2cb726e92c
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user