Fix password handling.
authorGunnar Wrobel <p@rdus.de>
Wed, 8 Apr 2009 18:22:10 +0000 (20:22 +0200)
committerGunnar Wrobel <p@rdus.de>
Wed, 8 Apr 2009 18:22:26 +0000 (20:22 +0200)
framework/Kolab_Server/lib/Horde/Kolab/Server/Test.php
framework/Kolab_Server/lib/Horde/Kolab/Test/Server.php

index 08b4448..75af6b9 100644 (file)
@@ -209,12 +209,12 @@ class Horde_Kolab_Server_Test extends Horde_Kolab_Server_Kolab
             $this->bound = true;
 
             try {
-                $data = $this->read($dn, array('userPassword'));
+                $data = $this->read($dn, array(Horde_Kolab_Server_Object_Person::ATTRIBUTE_USERPASSWORD));
             } catch (Horde_Kolab_Server_Exception $e) {
                 $this->bound = false;
                 throw $e;
             }
-            if (!isset($data['userPassword'])) {
+            if (!isset($data[Horde_Kolab_Server_Object_Person::ATTRIBUTE_USERPASSWORD])) {
                 $this->bound = false;
                 throw new Horde_Kolab_Server_Exception('User has no password entry!');
             }
index 36bad3f..84daef0 100644 (file)
@@ -276,8 +276,9 @@ class Horde_Kolab_Test_Server extends PHPUnit_Extensions_Story_TestCase
         global $conf;
 
         /** Prepare a Kolab test server */
-        $conf['kolab']['server']['driver']           = $type;
-        $conf['kolab']['server']['params']['basedn'] = 'dc=example,dc=org';
+        $conf['kolab']['server']['driver']             = $type;
+        $conf['kolab']['server']['params']['basedn']   = 'dc=example,dc=org';
+        $conf['kolab']['server']['params']['hashtype'] = 'plain';
 
         if ($type == 'file') {
             $conf['kolab']['server']['params']['file'] = Horde::getTempFile('fileTest');