diff options
Diffstat (limited to 'src/lib/kadm5/srv/pwqual_empty.c')
-rw-r--r-- | src/lib/kadm5/srv/pwqual_empty.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/kadm5/srv/pwqual_empty.c b/src/lib/kadm5/srv/pwqual_empty.c index ba25502..df3505a 100644 --- a/src/lib/kadm5/srv/pwqual_empty.c +++ b/src/lib/kadm5/srv/pwqual_empty.c @@ -35,12 +35,15 @@ static krb5_error_code empty_check(krb5_context context, krb5_pwqual_moddata data, const char *password, const char *policy_name, - krb5_principal princ) + krb5_principal princ, const char **languages) { /* Unlike other built-in modules, this one operates even for principals * with no password policy. */ - if (*password == '\0') + if (*password == '\0') { + krb5_set_error_message(context, KADM5_PASS_Q_TOOSHORT, + "Empty passwords are not allowed"); return KADM5_PASS_Q_TOOSHORT; + } return 0; } |