1
0
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:
Volker Lendecke 2017-01-28 11:36:11 +00:00
parent c0875cd883
commit 00c25a5080
4 changed files with 12 additions and 4 deletions

View File

@ -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;

View File

@ -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,

View File

@ -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;

View File

@ -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,