From: Timo Sirainen Date: Wed, 9 Jul 2008 12:23:37 +0000 (+0530) Subject: Changed SQL's default password scheme to MD5. X-Git-Tag: 1.2.alpha1~175 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=79450e7c1bbc2812957ccde8dcaf41ed54eb3611;p=thirdparty%2Fdovecot%2Fcore.git Changed SQL's default password scheme to MD5. --HG-- branch : HEAD --- 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;