From 79450e7c1bbc2812957ccde8dcaf41ed54eb3611 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 9 Jul 2008 17:53:37 +0530 Subject: [PATCH] Changed SQL's default password scheme to MD5. --HG-- branch : HEAD --- doc/dovecot-sql-example.conf | 2 +- src/auth/db-sql.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/dovecot-sql-example.conf b/doc/dovecot-sql-example.conf index 7c5f70d835..fcc54970df 100644 --- a/doc/dovecot-sql-example.conf +++ b/doc/dovecot-sql-example.conf @@ -65,7 +65,7 @@ # List of supported schemes is in # http://wiki.dovecot.org/Authentication/PasswordSchemes # -#default_pass_scheme = PLAIN-MD5 +#default_pass_scheme = MD5 # passdb query to retrieve the password. It can return fields: # password - The user's password. This field must be returned. diff --git a/src/auth/db-sql.c b/src/auth/db-sql.c index 25ea590735..72b45689bc 100644 --- a/src/auth/db-sql.c +++ b/src/auth/db-sql.c @@ -32,7 +32,7 @@ struct sql_settings default_sql_settings = { MEMBER(password_query) "SELECT username, domain, password FROM users WHERE username = '%n' AND domain = '%d'", MEMBER(user_query) "SELECT home, uid, gid FROM users WHERE username = '%n' AND domain = '%d'", MEMBER(update_query) "UPDATE users SET password = '%w' WHERE username = '%n' AND domain = '%d'", - MEMBER(default_pass_scheme) "PLAIN-MD5" + MEMBER(default_pass_scheme) "MD5" }; static struct sql_connection *connections = NULL; -- 2.47.3