Changeset 5035 in subversion


Ignore:
Timestamp:
Aug 9, 2011 7:43:47 AM (22 months ago)
Author:
alec
Message:
  • Fixed Samba password hashing in 'ldap' driver
Location:
trunk/plugins/password
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/password/drivers/ldap.php

    r4529 r5035  
    201201 */ 
    202202 
    203 function hashPassword( $passwordClear, $encodageType )  
     203function hashPassword( $passwordClear, $encodageType ) 
    204204{ 
    205205    $encodageType = strtolower( $encodageType ); 
     
    272272        case 'samba': 
    273273            if (function_exists('hash')) { 
    274                 $cryptedPassword = hash('md4', rcube_charset_convert($password_clear, RCMAIL_CHARSET, 'UTF-16LE')); 
     274                $cryptedPassword = hash('md4', rcube_charset_convert($passwordClear, RCMAIL_CHARSET, 'UTF-16LE')); 
    275275            } else { 
    276276                                /* Your PHP install does not have the hash() function */ 
  • trunk/plugins/password/package.xml

    r4595 r5035  
    2929        <notes> 
    3030- When old and new passwords are the same, do nothing, return success (#1487823) 
     31- Fixed Samba password hashing in 'ldap' driver 
    3132    </notes> 
    3233        <contents> 
Note: See TracChangeset for help on using the changeset viewer.