[Tickets #9275] Re: crypt-md5 password with show_encryption doesn't work

bugs at horde.org bugs at horde.org
Wed Sep 29 22:02:14 UTC 2010


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/9275
------------------------------------------------------------------------------
  Ticket             | 9275
  Updated By         | tonton at bdefracte.org
  Summary            | crypt-md5 password with show_encryption doesn't work
  Queue              | Passwd
  Version            | HEAD
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


tonton at bdefracte.org (2010-09-29 18:02) wrote:

Here is a fix that works:

diff -urb passwd.old/lib/Driver.php passwd/lib/Driver.php
--- passwd.old/lib/Driver.php   2010-09-30 00:00:35.000000000 +0200
+++ passwd/lib/Driver.php       2010-09-29 23:39:17.000000000 +0200
@@ -3,7 +3,7 @@
   * Passwd_Driver:: defines an API for implementing password change  
systems for
   * Passwd.
   *
- * $Horde: passwd/lib/Driver.php,v 1.44.2.9 2008/10/24 16:48:50 jan Exp $
+ * $Horde: passwd/lib/Driver.php,v 1.44.2.10 2009-01-06 15:25:15 jan Exp $
   *
   * Copyright 2000-2009 The Horde Project (http://www.horde.org/)
   *
@@ -54,6 +54,9 @@
              if ($this->_params['driver'] == 'ldap' && $encryption == 'md5') {
                  $encryption = 'md5-base64';
              }
+           if ($encryption == 'crypt' && substr($encrypted, 0, 3) == '$1$') {
+               $encryption = 'crypt-md5';
+           }
          } else {
              $encryption = $this->_params['encryption'];
          }







More information about the bugs mailing list