dovecot-2.2: auth: Allow auth_verbose_passwords=yes as an alias ...

dovecot at dovecot.org dovecot at dovecot.org
Fri Feb 7 20:54:09 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/27ac53f11f1f
changeset: 17139:27ac53f11f1f
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Feb 07 15:53:54 2014 -0500
description:
auth: Allow auth_verbose_passwords=yes as an alias for "plain".

diffstat:

 src/auth/auth-settings.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r afd3cfcf1bcb -r 27ac53f11f1f src/auth/auth-settings.c
--- a/src/auth/auth-settings.c	Fri Feb 07 15:53:32 2014 -0500
+++ b/src/auth/auth-settings.c	Fri Feb 07 15:53:54 2014 -0500
@@ -330,7 +330,7 @@
 }
 
 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 @@
 		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;
 	}


More information about the dovecot-cvs mailing list