From: Timo Sirainen Date: Mon, 12 Oct 2009 20:19:00 +0000 (-0400) Subject: bsdauth: Use PLAIN as default_pass_scheme instead of CRYPT. X-Git-Tag: 2.0.alpha1~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed353dad0cafc9574066f1cc62fd88aa6f55c45c;p=thirdparty%2Fdovecot%2Fcore.git bsdauth: Use PLAIN as default_pass_scheme instead of CRYPT. --HG-- branch : HEAD --- diff --git a/src/auth/passdb-bsdauth.c b/src/auth/passdb-bsdauth.c index 9453cfda3b..9a74944741 100644 --- a/src/auth/passdb-bsdauth.c +++ b/src/auth/passdb-bsdauth.c @@ -13,8 +13,6 @@ #include #include -#define BSDAUTH_PASS_SCHEME "CRYPT" - static void bsdauth_verify_plain(struct auth_request *request, const char *password, verify_plain_callback_t *callback) @@ -56,12 +54,12 @@ bsdauth_preinit(struct auth_passdb *auth_passdb, const char *args) 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;