kadm5: Use KADM5_PASS_Q_GENERIC

This commit is contained in:
Nicolas Williams
2021-12-15 15:45:56 -06:00
committed by Luke Howard
parent 437d4e95ec
commit 4aa8677081
3 changed files with 9 additions and 4 deletions

View File

@@ -131,8 +131,8 @@ change(void *server_handle,
pwd_reason = kadm5_check_password_quality(context->context,
princ, &pwd_data);
if (pwd_reason != NULL) {
krb5_set_error_message(context->context, KADM5_PASS_Q_DICT, "%s", pwd_reason);
return KADM5_PASS_Q_DICT;
krb5_set_error_message(context->context, KADM5_PASS_Q_GENERIC, "%s", pwd_reason);
return KADM5_PASS_Q_GENERIC;
}
}