summaryrefslogtreecommitdiff
path: root/plugins/password/drivers/ldap.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-11-23 08:38:42 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-11-23 08:38:42 +0000
commitea30faa00eca371a15653a6e2f8ad4ac8301e822 (patch)
treed19fc6aed538dca01ca6c32c2673b89abc87f972 /plugins/password/drivers/ldap.php
parent9d4ed0d3ccc43721534ff82a26633e6e3ba3b559 (diff)
- Save Samba password hashes in capital letters (#1488197)
git-svn-id: https://svn.roundcube.net/trunk@5467 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/password/drivers/ldap.php')
-rw-r--r--plugins/password/drivers/ldap.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/password/drivers/ldap.php b/plugins/password/drivers/ldap.php
index 3ea30a69c..e6450e5e1 100644
--- a/plugins/password/drivers/ldap.php
+++ b/plugins/password/drivers/ldap.php
@@ -272,6 +272,7 @@ function hashPassword( $passwordClear, $encodageType )
case 'samba':
if (function_exists('hash')) {
$cryptedPassword = hash('md4', rcube_charset_convert($passwordClear, RCMAIL_CHARSET, 'UTF-16LE'));
+ $cryptedPassword = strtoupper($cryptedPassword);
} else {
/* Your PHP install does not have the hash() function */
return false;