Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9426:08ed9e0e0897 HEAD
bsdauth: Use PLAIN as default_pass_scheme instead of CRYPT.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 12 Oct 2009 16:19:00 -0400 |
parents | 1c529a941c99 |
children | 5fc4fb574c9f |
files | src/auth/passdb-bsdauth.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ -13,8 +13,6 @@ #include <bsd_auth.h> #include <pwd.h> -#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 @@ 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;