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...
This commit is contained in:
Nicolas Williams
2019-01-08 23:26:48 -06:00
parent c2b106def5
commit 717a399bbd

View File

@@ -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) {