]> git.donarmstrong.com Git - roundcube.git/blobdiff - plugins/password/drivers/ldap.php
Imported Upstream version 0.6+dfsg
[roundcube.git] / plugins / password / drivers / ldap.php
index a18f349d7b854f55248af5f92229b57e9aa005d2..3ea30a69c6b1eea5e24e67c10330eb4dff979caf 100644 (file)
@@ -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;