6.0.0-git
2018-12-15

[#8143] SHA encryption incompatible with Toltec connector
Summary SHA encryption incompatible with Toltec connector
Queue Kolab
Type Bug
State Assigned
Priority 1. Low
Owners wrobel (at) horde (dot) org
Requester hopfgartner (at) marcher (dot) at
Created 2009-04-02 (3544 days ago)
Due
Updated 2009-04-02 (3544 days ago)
Assigned 2009-04-02 (3544 days ago)
Resolved
Milestone
Patch No

History
2009-04-02 09:24:23 hopfgartner (at) marcher (dot) at Comment #2 Reply to this comment
See the hardcode patch, I've made on it, to work.

I think, the better solution would be to use backends.php "param" value.



         // And finally change the password.

         //$new_details['userPassword'] = '{sha}' .

         //    base64_encode(pack('H*', sha1($new_password)));





         $new_details['userPassword'] = $new_password;


2009-04-02 08:55:21 Jan Schneider Assigned to Gunnar Wrobel
State ⇒ Assigned
 
2009-04-02 08:55:10 Jan Schneider Version ⇒
Queue ⇒ Kolab
 
2009-04-02 08:16:23 hopfgartner (at) marcher (dot) at Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Summary ⇒ SHA encryption incompatible with Toltec connector
Queue ⇒ Passwd
Milestone ⇒
Patch ⇒ No
Reply to this comment
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'

             )

);






Saved Queries