From 717a399bbd6f19d9ce15b8c44e3d5ca710b7eae1 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Tue, 8 Jan 2019 23:26:48 -0600 Subject: [PATCH] Fix ktutil weak password for principal creation Now that we always enforce password quality policies, ktutil get fails because it uses "x" as a password when creating a principal. Of course, it's probably a misfeature that ktutil get creates principals when they don't exist... --- admin/get.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/get.c b/admin/get.c index 5f1afc74d..f56e50f43 100644 --- a/admin/get.c +++ b/admin/get.c @@ -197,7 +197,7 @@ kt_get(struct get_options *opt, int argc, char **argv) break; } - ret = kadm5_create_principal(kadm_handle, &princ, mask, "x"); + ret = kadm5_create_principal(kadm_handle, &princ, mask, "thisIs_aUseless.password123"); if(ret == 0) created = 1; else if(ret != KADM5_DUP) {