]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli/auth: pass auth_{type,level} to netlogon_creds_server_step_check()
authorStefan Metzmacher <metze@samba.org>
Tue, 29 Oct 2024 08:46:07 +0000 (09:46 +0100)
committerDouglas Bagnall <dbagnall@samba.org>
Wed, 30 Oct 2024 23:08:36 +0000 (23:08 +0000)
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>
libcli/auth/credentials.c
libcli/auth/proto.h
libcli/auth/schannel_state_tdb.c

index 93a537c2b01a6d22ab17f84436163bc7b88d2d89..acaf721183bb0e820e2e59221a0e64ef0ab0e048 100644 (file)
@@ -804,7 +804,9 @@ struct netlogon_creds_CredentialState *netlogon_creds_server_init(TALLOC_CTX *me
 
 NTSTATUS netlogon_creds_server_step_check(struct netlogon_creds_CredentialState *creds,
                                 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;
 
index f14568df0a5037764e1501e819840788e0f132f8..b4410f2f72e3e495321f5dc7d6e9c1e5a0663ad7 100644 (file)
@@ -78,7 +78,9 @@ struct netlogon_creds_CredentialState *netlogon_creds_server_init(TALLOC_CTX *me
                                                                  uint32_t negotiate_flags);
 NTSTATUS netlogon_creds_server_step_check(struct netlogon_creds_CredentialState *creds,
                                 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,
                                                    uint16_t validation_level,
                                                    union netr_Validation *validation,
index 717d41b05d7b42404f39f6093346a0d161596065..b823ab6471d767ca65ed02cf1196ef8d4b849121 100644 (file)
@@ -630,7 +630,9 @@ NTSTATUS schannel_check_creds_state(TALLOC_CTX *mem_ctx,
 
        status = netlogon_creds_server_step_check(creds,
                                                  received_authenticator,
-                                                 return_authenticator);
+                                                 return_authenticator,
+                                                 auth_type,
+                                                 auth_level);
        if (!NT_STATUS_IS_OK(status)) {
                goto done;
        }