diff options
author | alecpl <alec@alec.pl> | 2009-09-02 09:35:19 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-09-02 09:35:19 +0000 |
commit | 64901dd0cc0c06458477653387bc8be8727abb7e (patch) | |
tree | 9886e4d9cadb83a414b8a1084c447bfecfa9275c /plugins/password/config.inc.php.dist | |
parent | 912bbbc20edc675f3906e146c718f60717d9d7e7 (diff) |
- Password plugin: support hashed passwords and username parts in sql driver queries
Diffstat (limited to 'plugins/password/config.inc.php.dist')
-rw-r--r-- | plugins/password/config.inc.php.dist | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/plugins/password/config.inc.php.dist b/plugins/password/config.inc.php.dist index 163fddaec..076cfd6a1 100644 --- a/plugins/password/config.inc.php.dist +++ b/plugins/password/config.inc.php.dist @@ -21,13 +21,29 @@ $rcmail_config['password_db_dsn'] = ''; // %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 +// %n is replaced with the hashed version of the new password +// %q is replaced with the hashed password before the change // %h is replaced with the imap host (from the session info) +// %u is replaced with the username (from the session info) +// %l is replaced with the local part of the username +// (in case the username is an email address) +// %d is replaced with the domain part of the username +// (in case the username is an email address) // Escaping of macros is handled by this module. // Default: "SELECT update_passwd(%c, %u)" $rcmail_config['password_query'] = 'SELECT update_passwd(%c, %u)'; +// Using a password hash for %n and %q variables. +// Determine which hashing algorithm should be used to generate +// the hashed new and current password for using them within the +// SQL query. Requires PHP's 'hash' extension. +$rcmail_config['password_hash_algorithm'] = 'sha1'; + +// You can also decide whether the hash should be provided +// as hex string or in base64 encoded format. +$rcmail_config['password_hash_base64'] = false; + // Poppassd Driver options // ----------------------- |