[Svn] r5467 - in trunk/plugins/password: . drivers

trac at roundcube.net trac at roundcube.net
Wed Nov 23 09:38:43 CET 2011


Author: alec
Date: 2011-11-23 02:38:42 -0600 (Wed, 23 Nov 2011)
New Revision: 5467

Modified:
   trunk/plugins/password/drivers/ldap.php
   trunk/plugins/password/drivers/ldap_simple.php
   trunk/plugins/password/package.xml
Log:
- Save Samba password hashes in capital letters (#1488197)


Modified: trunk/plugins/password/drivers/ldap.php
===================================================================
--- trunk/plugins/password/drivers/ldap.php	2011-11-22 13:38:15 UTC (rev 5466)
+++ trunk/plugins/password/drivers/ldap.php	2011-11-23 08:38:42 UTC (rev 5467)
@@ -272,6 +272,7 @@
         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;

Modified: trunk/plugins/password/drivers/ldap_simple.php
===================================================================
--- trunk/plugins/password/drivers/ldap_simple.php	2011-11-22 13:38:15 UTC (rev 5466)
+++ trunk/plugins/password/drivers/ldap_simple.php	2011-11-23 08:38:42 UTC (rev 5467)
@@ -238,6 +238,7 @@
         case 'samba':
             if (function_exists('hash')) {
                 $crypted_password = hash('md4', rcube_charset_convert($password_clear, RCMAIL_CHARSET, 'UTF-16LE'));
+                $crypted_password = strtoupper($crypted_password);
             } else {
 				/* Your PHP install does not have the hash() function */
 				return false;

Modified: trunk/plugins/password/package.xml
===================================================================
--- trunk/plugins/password/package.xml	2011-11-22 13:38:15 UTC (rev 5466)
+++ trunk/plugins/password/package.xml	2011-11-23 08:38:42 UTC (rev 5467)
@@ -15,7 +15,7 @@
 		<email>alec at alec.pl</email>
 		<active>yes</active>
 	</lead>
-	<date>2011-10-06</date>
+	<date>2011-11-23</date>
 	<version>
 		<release>2.4</release>
 		<api>1.6</api>
@@ -27,6 +27,7 @@
 	<license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU GPLv2</license>
 	<notes>
 - Added option to use punycode or unicode for domain names (#1488103)
+- Save Samba password hashes in capital letters (#1488197)
     </notes>
 	<contents>
 		<dir baseinstalldir="/" name="/">

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list