mirror of
https://github.com/samba-team/samba.git
synced 2025-01-06 13:18:07 +03:00
libcli/auth: pass auth_{type,level} to netlogon_creds_server_step_check()
This will make it easier to implement netr_ServerAuthenticateKerberos() later...
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15425
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit 2956c7eb3c
)
This commit is contained in:
parent
15fad537ca
commit
1edb984810
@ -798,7 +798,9 @@ struct netlogon_creds_CredentialState *netlogon_creds_server_init(TALLOC_CTX *me
|
|||||||
|
|
||||||
NTSTATUS netlogon_creds_server_step_check(struct netlogon_creds_CredentialState *creds,
|
NTSTATUS netlogon_creds_server_step_check(struct netlogon_creds_CredentialState *creds,
|
||||||
const struct netr_Authenticator *received_authenticator,
|
const struct netr_Authenticator *received_authenticator,
|
||||||
struct netr_Authenticator *return_authenticator)
|
struct netr_Authenticator *return_authenticator,
|
||||||
|
enum dcerpc_AuthType auth_type,
|
||||||
|
enum dcerpc_AuthLevel auth_level)
|
||||||
{
|
{
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
|
|
||||||
|
@ -71,7 +71,9 @@ struct netlogon_creds_CredentialState *netlogon_creds_server_init(TALLOC_CTX *me
|
|||||||
uint32_t negotiate_flags);
|
uint32_t negotiate_flags);
|
||||||
NTSTATUS netlogon_creds_server_step_check(struct netlogon_creds_CredentialState *creds,
|
NTSTATUS netlogon_creds_server_step_check(struct netlogon_creds_CredentialState *creds,
|
||||||
const struct netr_Authenticator *received_authenticator,
|
const struct netr_Authenticator *received_authenticator,
|
||||||
struct netr_Authenticator *return_authenticator) ;
|
struct netr_Authenticator *return_authenticator,
|
||||||
|
enum dcerpc_AuthType auth_type,
|
||||||
|
enum dcerpc_AuthLevel auth_level);
|
||||||
NTSTATUS netlogon_creds_decrypt_samlogon_validation(struct netlogon_creds_CredentialState *creds,
|
NTSTATUS netlogon_creds_decrypt_samlogon_validation(struct netlogon_creds_CredentialState *creds,
|
||||||
uint16_t validation_level,
|
uint16_t validation_level,
|
||||||
union netr_Validation *validation,
|
union netr_Validation *validation,
|
||||||
|
@ -630,7 +630,9 @@ NTSTATUS schannel_check_creds_state(TALLOC_CTX *mem_ctx,
|
|||||||
|
|
||||||
status = netlogon_creds_server_step_check(creds,
|
status = netlogon_creds_server_step_check(creds,
|
||||||
received_authenticator,
|
received_authenticator,
|
||||||
return_authenticator);
|
return_authenticator,
|
||||||
|
auth_type,
|
||||||
|
auth_level);
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user