mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
cli_netlogon: Add return parms to rpccli_netlogon_password_logon
Just for symmetry with rpccli_netlogon_network_logon() Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
c0875cd883
commit
00c25a5080
@ -310,6 +310,8 @@ NTSTATUS rpccli_netlogon_password_logon(struct netlogon_creds_cli_context *creds
|
||||
const char *password,
|
||||
const char *workstation,
|
||||
enum netr_LogonInfoClass logon_type,
|
||||
uint8_t *authoritative,
|
||||
uint32_t *flags,
|
||||
struct netr_SamInfo3 **info3)
|
||||
{
|
||||
TALLOC_CTX *frame = talloc_stackframe();
|
||||
@ -317,8 +319,6 @@ NTSTATUS rpccli_netlogon_password_logon(struct netlogon_creds_cli_context *creds
|
||||
union netr_LogonLevel *logon;
|
||||
uint16_t validation_level = 0;
|
||||
union netr_Validation *validation = NULL;
|
||||
uint8_t authoritative = 0;
|
||||
uint32_t flags = 0;
|
||||
char *workstation_slash = NULL;
|
||||
|
||||
logon = talloc_zero(frame, union netr_LogonLevel);
|
||||
@ -426,8 +426,8 @@ NTSTATUS rpccli_netlogon_password_logon(struct netlogon_creds_cli_context *creds
|
||||
frame,
|
||||
&validation_level,
|
||||
&validation,
|
||||
&authoritative,
|
||||
&flags);
|
||||
authoritative,
|
||||
flags);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
TALLOC_FREE(frame);
|
||||
return status;
|
||||
|
@ -65,6 +65,8 @@ NTSTATUS rpccli_netlogon_password_logon(struct netlogon_creds_cli_context *creds
|
||||
const char *password,
|
||||
const char *workstation,
|
||||
enum netr_LogonInfoClass logon_type,
|
||||
uint8_t *authoritative,
|
||||
uint32_t *flags,
|
||||
struct netr_SamInfo3 **info3);
|
||||
NTSTATUS rpccli_netlogon_network_logon(struct netlogon_creds_cli_context *creds,
|
||||
struct dcerpc_binding_handle *binding_handle,
|
||||
|
@ -779,6 +779,8 @@ static NTSTATUS cmd_netlogon_sam_logon(struct rpc_pipe_client *cli,
|
||||
uint32_t logon_param = 0;
|
||||
const char *workstation = NULL;
|
||||
struct netr_SamInfo3 *info3 = NULL;
|
||||
uint8_t authoritative = 0;
|
||||
uint32_t flags = 0;
|
||||
|
||||
/* Check arguments */
|
||||
|
||||
@ -816,6 +818,8 @@ static NTSTATUS cmd_netlogon_sam_logon(struct rpc_pipe_client *cli,
|
||||
password,
|
||||
workstation,
|
||||
logon_type,
|
||||
&authoritative,
|
||||
&flags,
|
||||
&info3);
|
||||
if (!NT_STATUS_IS_OK(result))
|
||||
goto done;
|
||||
|
@ -1392,6 +1392,8 @@ static NTSTATUS winbind_samlogon_retry_loop(struct winbindd_domain *domain,
|
||||
password,
|
||||
workstation,
|
||||
NetlogonInteractiveInformation,
|
||||
&authoritative,
|
||||
&flags,
|
||||
info3);
|
||||
} else {
|
||||
result = rpccli_netlogon_network_logon(domain->conn.netlogon_creds,
|
||||
|
Loading…
x
Reference in New Issue
Block a user