]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Include etype-info in for hardware preauth hints
authorGreg Hudson <ghudson@mit.edu>
Wed, 3 Jan 2018 16:59:14 +0000 (11:59 -0500)
committerGreg Hudson <ghudson@mit.edu>
Mon, 8 Jan 2018 17:08:53 +0000 (12:08 -0500)
If a principal has the requires_hwauth bit set, include PA-ETYPE-INFO
or PA-ETYPE-INFO2 padata in the PREAUTH_REQUIRED error, as preauth
mechs involving hardware tokens may also use the principal's Kerberos
password.

ticket: 8629

src/kdc/kdc_preauth.c

index 81d0b8cffd390b35791e3cc9805dbb6fd6cf8976..739c5e77658fba22a8e9bc3bbd827c5ee5657f34 100644 (file)
@@ -144,7 +144,7 @@ static preauth_system static_preauth_systems[] = {
     {
         "etype-info",
         KRB5_PADATA_ETYPE_INFO,
-        0,
+        PA_HARDWARE,
         NULL,
         NULL,
         NULL,
@@ -155,7 +155,7 @@ static preauth_system static_preauth_systems[] = {
     {
         "etype-info2",
         KRB5_PADATA_ETYPE_INFO2,
-        0,
+        PA_HARDWARE,
         NULL,
         NULL,
         NULL,