dovecot-2.0: bsdauth: Set default pass scheme to CRYPT.

dovecot at dovecot.org dovecot at dovecot.org
Mon Oct 12 21:11:49 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/21636cae54e6
changeset: 10040:21636cae54e6
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Oct 12 14:11:23 2009 -0400
description:
bsdauth: Set default pass scheme to CRYPT.

diffstat:

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

diffs (20 lines):

diff -r ddcc3391adf9 -r 21636cae54e6 src/auth/passdb-bsdauth.c
--- a/src/auth/passdb-bsdauth.c	Mon Oct 12 13:53:36 2009 -0400
+++ b/src/auth/passdb-bsdauth.c	Mon Oct 12 14:11:23 2009 -0400
@@ -12,6 +12,8 @@
 #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,
@@ -59,6 +61,7 @@ bsdauth_preinit(struct auth_passdb *auth
 		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