]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Allow only one salt type per enctype in key data 1409/head
authorGreg Hudson <ghudson@mit.edu>
Wed, 29 Jan 2025 05:22:57 +0000 (00:22 -0500)
committerGreg Hudson <ghudson@mit.edu>
Thu, 6 Feb 2025 22:25:09 +0000 (17:25 -0500)
In the default libkdb5 password change method, omit requested key/salt
combinations that duplicate an earlier encryption type, even if they
have a different salt type.  Any use cases for multiple salts for the
same enctype disappeared with single-DES support.  (We already have
this behavior for chrand requests.)

ticket: 9160 (new)

src/lib/kdb/kdb_cpw.c

index c33c7cf8d0bc15a7c1717b534ab429f782aa248c..8b012e19efaf54367e4191944e0386816896e5de 100644 (file)
@@ -264,8 +264,7 @@ add_key_pwd(krb5_context context, krb5_keyblock *master_key,
                                                  &similar)))
                 return(retval);
 
-            if (similar &&
-                (ks_tuple[j].ks_salttype == ks_tuple[i].ks_salttype))
+            if (similar)
                 break;
         }