dovecot-2.0: bsdauth: Use PLAIN as default_pass_scheme instead o...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Oct 12 23:19:17 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/f5c2bc161baa
changeset: 10043:f5c2bc161baa
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 92e1273cf55a -r f5c2bc161baa src/auth/passdb-bsdauth.c
--- a/src/auth/passdb-bsdauth.c Mon Oct 12 16:01:53 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