dovecot-1.2: bsdauth: Use PLAIN as default_pass_scheme instead o...

dovecot at dovecot.org dovecot at dovecot.org
Mon Oct 12 23:19:08 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/08ed9e0e0897
changeset: 9426:08ed9e0e0897
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Oct 12 16:19:00 2009 -0400
description:
bsdauth: Use PLAIN as default_pass_scheme instead of CRYPT.

diffstat:

1 file changed, 1 insertion(+), 3 deletions(-)
src/auth/passdb-bsdauth.c |    4 +---

diffs (26 lines):

diff -r 1c529a941c99 -r 08ed9e0e0897 src/auth/passdb-bsdauth.c
--- a/src/auth/passdb-bsdauth.c	Mon Oct 12 14:11:23 2009 -0400
+++ b/src/auth/passdb-bsdauth.c	Mon Oct 12 16:19:00 2009 -0400
@@ -12,8 +12,6 @@
 #include <login_cap.h>
 #include <bsd_auth.h>
 #include <pwd.h>
-
-#define BSDAUTH_PASS_SCHEME "CRYPT"
 
 static void
 bsdauth_verify_plain(struct auth_request *request, const char *password,
@@ -56,12 +54,12 @@ bsdauth_preinit(struct auth_passdb *auth
 	struct passdb_module *module;
 
 	module = p_new(auth_passdb->auth->pool, struct passdb_module, 1);
+	module->module.default_pass_scheme = "PLAIN"; /* same reason as PAM */
 
 	if (strncmp(args, "cache_key=", 10) == 0) {
 		module->cache_key =
 			auth_cache_parse_key(auth_passdb->auth->pool,
 					     args + 10);
-		module->default_pass_scheme = BSDAUTH_PASS_SCHEME;
 	} else if (*args != '\0')
 		i_fatal("passdb bsdauth: Unknown setting: %s", args);
 	return module;


More information about the dovecot-cvs mailing list