[Tickets #8143] SHA encryption incompatible with Toltec connector

bugs at horde.org bugs at horde.org
Thu Apr 2 08:16:23 UTC 2009


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

Ticket URL: http://bugs.horde.org/ticket/8143
------------------------------------------------------------------------------
  Ticket             | 8143
  Created By         | hopfgartner at marcher.at
  Summary            | SHA encryption incompatible with Toltec connector
  Queue              | Passwd
  Version            | HEAD
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


hopfgartner at marcher.at (2009-04-02 04:16) wrote:

as defined in "passwd/lib/Driver/kolab.php",
SHA encryption is used for storing the user_password in LDAP.

Since we use Toltec and it uses PLAIN encryption, this is incompatible.


         // And finally change the password.
         $new_details['userPassword'] = '{sha}' .
             base64_encode(pack('H*', sha1($new_password)));

         if (!ldap_mod_replace($ds, $userdn, $new_details)) {
             return PEAR::raiseError(ldap_error($ds));
         }


In backends.php I've defined the following, but since encryption is  
hardcoded into the Kolab-Driver this won't work:

$backends['kolab'] = array(
     'name' => 'Local Kolab Server',
     'preferred' => '',
     'password policy' => array(
         'minLength' => 3,
         'maxLength' => 8
     ),
     'driver' => 'kolab',
     'params' => array(
             'encryption' => 'plain'
             )
);









More information about the bugs mailing list