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:
@@ -197,7 +197,7 @@ kt_get(struct get_options *opt, int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = kadm5_create_principal(kadm_handle, &princ, mask, "x");
|
ret = kadm5_create_principal(kadm_handle, &princ, mask, "thisIs_aUseless.password123");
|
||||||
if(ret == 0)
|
if(ret == 0)
|
||||||
created = 1;
|
created = 1;
|
||||||
else if(ret != KADM5_DUP) {
|
else if(ret != KADM5_DUP) {
|
||||||
|
Reference in New Issue
Block a user