From 3e3fcd4d2786930996be916b9ff3a0c46abc49c0 Mon Sep 17 00:00:00 2001
From: Lorenzo Perone <lorenzo.perone@bytesatwork.com>
Date: Tue, 14 Oct 2014 17:22:46 -0400
Subject: [PATCH] Password Plugin / LDAP Driver: - adds support for (optional) multiple userPassword values for compatibility with more authentication shemes - adds support for CRAM-MD5 scheme as implemented by doveadm pw (credits: see header of plugins/password/helpers/dovecot_hmacmd5.php)

---
 plugins/password/config.inc.php.dist |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/plugins/password/config.inc.php.dist b/plugins/password/config.inc.php.dist
index 6610b4d..94c4368 100644
--- a/plugins/password/config.inc.php.dist
+++ b/plugins/password/config.inc.php.dist
@@ -204,10 +204,11 @@
 
 // LDAP password hash type
 // Standard LDAP encryption type which must be one of: crypt,
-// ext_des, md5crypt, blowfish, md5, sha, smd5, ssha, ad or clear.
+// ext_des, md5crypt, blowfish, md5, sha, smd5, ssha, ad, cram-md5 (dovecot style) or clear.
 // Please note that most encodage types require external libraries
 // to be included in your PHP installation, see function hashPassword in drivers/ldap.php for more info.
-// Default: 'crypt'
+// Multiple password Values can be generated by concatenating encodings with a +. E.g. 'cram-md5+crypt'
+// Default: 'crypt'.
 $config['password_ldap_encodage'] = 'crypt';
 
 // LDAP password attribute

--
Gitblit v1.9.1