changeset 9425:1c529a941c99 HEAD

bsdauth: Set default pass scheme to CRYPT.
author Timo Sirainen <tss@iki.fi>
date Mon, 12 Oct 2009 14:11:23 -0400
parents bf11870ecb02
children 08ed9e0e0897
files src/auth/passdb-bsdauth.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
@@ -13,6 +13,8 @@
 #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)
@@ -59,6 +61,7 @@
 		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;