]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
auth_log: prepare for netr_ServerAuthenticateKerberos
authorStefan Metzmacher <metze@samba.org>
Tue, 29 Oct 2024 17:30:22 +0000 (18:30 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 12 Dec 2024 13:59:29 +0000 (13:59 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
auth/auth_log.c
auth/common_auth.h

index 9a110fd0b4864ae2f97fce74b7e4940f2d09d4e5..a918db4e37fd4eb7dfe575090de0b8073ea7b5cb 100644 (file)
@@ -754,8 +754,10 @@ static const char* get_password_type(const struct auth_usersupplied_info *ui)
        } else if (ui->auth_description != NULL &&
                   strncmp("ServerAuthenticate", ui->auth_description, 18) == 0)
        {
-               if (ui->netlogon_trust_account.negotiate_flags
-                   & NETLOGON_NEG_SUPPORTS_AES) {
+               if (ui->netlogon_trust_account.authenticate_kerberos) {
+                       password_type = "Kerberos";
+               } else if (ui->netlogon_trust_account.negotiate_flags
+                          & NETLOGON_NEG_SUPPORTS_AES) {
                        password_type = "HMAC-SHA256";
                } else if (ui->netlogon_trust_account.negotiate_flags
                           & NETLOGON_NEG_STRONG_KEYS) {
index 1afb79eb5df573b2f07537a11abdbd79fa587f9d..ef507211453d52f24493f638dfe64e4be03cce3d 100644 (file)
@@ -79,6 +79,7 @@ struct auth_usersupplied_info
 
        struct {
                uint32_t negotiate_flags;
+               bool authenticate_kerberos;
                enum netr_SchannelType secure_channel_type;
                const char *computer_name; /* [charset(UTF8)] */
                const char *account_name; /* [charset(UTF8)] */