]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
bsdauth: Set default pass scheme to CRYPT.
authorTimo Sirainen <tss@iki.fi>
Mon, 12 Oct 2009 18:11:23 +0000 (14:11 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 12 Oct 2009 18:11:23 +0000 (14:11 -0400)
--HG--
branch : HEAD

src/auth/passdb-bsdauth.c

index 3985cd16cc21cb6486ba70d6995660283be1c7b0..9453cfda3b29c4782f41e36d0e43044c0c7752ba 100644 (file)
@@ -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 @@ bsdauth_preinit(struct auth_passdb *auth_passdb, const char *args)
                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;