[Kolab-devel] Password change problem
Dan Ohnesorg
Dan at ohnesorg.cz
Mon Dec 1 13:14:08 CET 2003
There is problem inside password component of horde, you won't be able to
change password, because there is not set realm.
from horde/passwd/lib/Driver/ldap.php
function _lookupdn($user) {
// bind as guest
$this->_connect();
// construct search
$search = $this->_params['uid'] . '=' . $user;
// DO: Now we need to add domain part to user name, but _params['realm'] is
// empty, so we need to hack the code
// if (!empty($this->_params['realm'])) {
$search .= '@mydomain.com';
// }
// get userdn
$result = ldap_search($this->_ds, $this->_params['basedn'], $search);
$entry = ldap_first_entry($this->_ds, $result);
if ($entry === false) {
$this->_disconnect();
return PEAR::raiseError(_("User not found."));
}
$userdn = ldap_get_dn($this->_ds, $entry);
// disconnect from ldap server
$this->_disconnect();
return $userdn;
}
It seems, that kolab forgets to set realm, but I don't see where it should
be set.
cheers
dan
More information about the devel
mailing list