summaryrefslogtreecommitdiff
path: root/plugins/password/config.inc.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-06-20 07:28:33 +0000
committeralecpl <alec@alec.pl>2009-06-20 07:28:33 +0000
commit6bd74d8d51045923698f958fc917918411c6ca13 (patch)
treee4fb532d6de60be50eef00136fb520e1f177d62f /plugins/password/config.inc.php
parent2dbc2d787a7d9acf85ac8b048d6a8a6c479ab428 (diff)
- Password plugin: implemented drivers
- removed password_sasl plugin
Diffstat (limited to 'plugins/password/config.inc.php')
-rw-r--r--plugins/password/config.inc.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/plugins/password/config.inc.php b/plugins/password/config.inc.php
new file mode 100644
index 000000000..8fa329204
--- /dev/null
+++ b/plugins/password/config.inc.php
@@ -0,0 +1,31 @@
+<?php
+
+// Password Plugin options
+// -----------------------
+// A driver to use for password change. Default: "sql".
+$rcmail_config['password_driver'] = 'sql';
+
+// Determine whether current password is required to change password.
+// Default: false.
+$rcmail_config['password_confirm_current'] = false;
+
+
+// SQL Driver options
+// ------------------
+// PEAR database DSN for performing the query. By default
+// Roundcube DB settings are used.
+$rcmail_config['password_db_dsn'] = '';
+
+// The SQL query used to change the password.
+// The query can contain the following macros that will be expanded as follows:
+// %p is replaced with the plaintext new password
+// %c is replaced with the crypt version of the new password, MD5 if available
+// otherwise DES.
+// %u is replaced with the username (from the session info)
+// %o is replaced with the password before the change
+// %h is replaced with the imap host (from the session info)
+// Escaping of macros is handled by this module.
+// Default: "SELECT update_passwd(%c, %u)"
+$rcmail_config['password_query'] = 'SELECT update_passwd(%c, %u)';
+
+?>