X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=plugins%2Fpassword%2Fdrivers%2Fldap.php;h=3ea30a69c6b1eea5e24e67c10330eb4dff979caf;hb=a2dd2e41259a5e90016efcd7d083020b95e25527;hp=a18f349d7b854f55248af5f92229b57e9aa005d2;hpb=fe4a852cd4335d3d2089b13e10d409fa2fa816d8;p=roundcube.git diff --git a/plugins/password/drivers/ldap.php b/plugins/password/drivers/ldap.php index a18f349..3ea30a6 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,7 @@ 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')); } else { /* Your PHP install does not have the hash() function */ return false;