X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=plugins%2Fpassword%2Fdrivers%2Fldap.php;h=e6450e5e12fc6378eb3a461a83ae14404d819f26;hb=76507f7c63a660742e76889ad6e3919f3dde3bb0;hp=a18f349d7b854f55248af5f92229b57e9aa005d2;hpb=07e1de2dcd3f3ff8910a3680493f035b3c693cf0;p=roundcube.git diff --git a/plugins/password/drivers/ldap.php b/plugins/password/drivers/ldap.php index a18f349..e6450e5 100644 --- a/plugins/password/drivers/ldap.php +++ b/plugins/password/drivers/ldap.php @@ -200,7 +200,7 @@ function substitute_vars($str) * */ -function hashPassword( $passwordClear, $encodageType ) +function hashPassword( $passwordClear, $encodageType ) { $encodageType = strtolower( $encodageType ); switch( $encodageType ) { @@ -271,7 +271,8 @@ function hashPassword( $passwordClear, $encodageType ) case 'samba': if (function_exists('hash')) { - $cryptedPassword = hash('md4', rcube_charset_convert($password_clear, RCMAIL_CHARSET, 'UTF-16LE')); + $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;