From 3190f12fb96daf61f7c880390472e18184cbb2d8 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 7 Feb 2014 15:53:54 -0500 Subject: [PATCH] auth: Allow auth_verbose_passwords=yes as an alias for "plain". --- src/auth/auth-settings.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/auth/auth-settings.c b/src/auth/auth-settings.c index 586ee138c4..994730c772 100644 --- a/src/auth/auth-settings.c +++ b/src/auth/auth-settings.c @@ -330,7 +330,7 @@ auth_settings_set_self_ips(struct auth_settings *set, pool_t pool, } static bool -auth_verify_verbose_password(const struct auth_settings *set, +auth_verify_verbose_password(struct auth_settings *set, const char **error_r) { const char *p, *value = set->verbose_passwords; @@ -351,7 +351,11 @@ auth_verify_verbose_password(const struct auth_settings *set, return TRUE; else if (strcmp(value, "sha1") == 0) return TRUE; - else { + else if (strcmp(value, "yes") == 0) { + /* just use it as alias for "plain" */ + set->verbose_passwords = "plain"; + return TRUE; + } else { *error_r = "auth_verbose_passwords: Invalid value"; return FALSE; } -- 2.47.3