$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!');
}
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');