When retrieving the kadmin/history key, accept any enctype, as the
authorGreg Hudson <ghudson@mit.edu>
Thu, 7 Jan 2010 20:57:02 +0000 (20:57 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 7 Jan 2010 20:57:02 +0000 (20:57 +0000)
current master key enctype may not match the one the KDB was created
with.

ticket: 6546
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23607 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kadm5/srv/server_kdb.c

index 4b1d05dbbce10301c9d7b974d2579d279585f45f..1e98a8e034b21cb7d48726d1401f8cba0e377ef1 100644 (file)
@@ -205,8 +205,8 @@ krb5_error_code kdb_init_hist(kadm5_server_handle_t handle, char *r)
 
     }
 
-    ret = krb5_dbe_find_enctype(handle->context, &hist_db,
-                                handle->params.enctype, -1, -1, &key_data);
+    ret = krb5_dbe_find_enctype(handle->context, &hist_db, -1, -1, -1,
+                                &key_data);
     if (ret)
         goto done;