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

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


details:   http://hg.dovecot.org/dovecot-1.2/rev/1c529a941c99
changeset: 9425:1c529a941c99
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 bf11870ecb02 -r 1c529a941c99 src/auth/passdb-bsdauth.c
--- a/src/auth/passdb-bsdauth.c	Mon Oct 12 14:05:02 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