From ed353dad0cafc9574066f1cc62fd88aa6f55c45c Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 12 Oct 2009 16:19:00 -0400 Subject: [PATCH] bsdauth: Use PLAIN as default_pass_scheme instead of CRYPT. --HG-- branch : HEAD --- src/auth/passdb-bsdauth.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; -- 2.47.3