]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli/auth: pass auth_{type,level} to schannel_check_creds_state()
authorStefan Metzmacher <metze@samba.org>
Tue, 29 Oct 2024 08:44:52 +0000 (09:44 +0100)
committerJule Anger <janger@samba.org>
Wed, 13 Nov 2024 10:39:12 +0000 (10:39 +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>
(cherry picked from commit 7b02fb50143ba5044605ec67ed41180391835dcb)

libcli/auth/schannel_state.h
libcli/auth/schannel_state_tdb.c
librpc/rpc/server/netlogon/schannel_util.c

index a333098458f8b0453592d96e5ceaa91db1069067..5b33ba0ab23ee5512aa543ee23c4ce88a228ad38 100644 (file)
@@ -37,6 +37,8 @@ NTSTATUS schannel_check_creds_state(TALLOC_CTX *mem_ctx,
                                    const char *computer_name,
                                    struct netr_Authenticator *received_authenticator,
                                    struct netr_Authenticator *return_authenticator,
+                                   enum dcerpc_AuthType auth_type,
+                                   enum dcerpc_AuthLevel auth_level,
                                    struct netlogon_creds_CredentialState **creds_out);
 
 NTSTATUS schannel_get_challenge(struct loadparm_context *lp_ctx,
index 4154997fc0256b16bbec74db0be33b8fc4559011..717d41b05d7b42404f39f6093346a0d161596065 100644 (file)
@@ -569,6 +569,8 @@ NTSTATUS schannel_check_creds_state(TALLOC_CTX *mem_ctx,
                                    const char *computer_name,
                                    struct netr_Authenticator *received_authenticator,
                                    struct netr_Authenticator *return_authenticator,
+                                   enum dcerpc_AuthType auth_type,
+                                   enum dcerpc_AuthLevel auth_level,
                                    struct netlogon_creds_CredentialState **creds_out)
 {
        TALLOC_CTX *tmpctx;
index b98b4706aac1df9dd8508eabaf400b3b612013bc..359f4b8ed08181c9041160aa168c02af03492b8a 100644 (file)
@@ -548,6 +548,8 @@ NTSTATUS dcesrv_netr_creds_server_step_check(struct dcesrv_call_state *dce_call,
                                               computer_name,
                                               received_authenticator,
                                               return_authenticator,
+                                              auth_type,
+                                              auth_level,
                                               &creds);
        if (!NT_STATUS_IS_OK(nt_status)) {
                ZERO_STRUCTP(return_authenticator);