| Summary | Bad Search Filter for changing password using LDAP Driver |
| Queue | Horde Groupware Webmail Edition |
| Queue Version | 5.1.3 |
| Type | Bug |
| State | Not A Bug |
| Priority | 1. Low |
| Owners | |
| Requester | asa (at) isac (dot) gov (dot) in |
| Created | 11/28/13 (4516 days ago) |
| Due | |
| Updated | 11/28/13 (4516 days ago) |
| Assigned | |
| Resolved | 11/28/13 (4516 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Bad Search Filter for changing password using LDAP Driver
Queue ⇒ Horde Groupware Webmail Edition
Milestone ⇒
Patch ⇒ No
following changes.
diff Ldap.php.ori Ldap.php
109,110c109,112
< // $this->_userdn = $this->_ldap->findUserDN($user);
< $this->_userdn = $this->_params['uid'] . '=' . $user .
',' . $this->_params['basedn'];
---
$ldapuser = $ldapwithdomain[0];
$this->_userdn = $this->_ldap->findUserDN($ldapuser);
// $this->_userdn = $this->_params['uid'] . '=' . $user
. ',' . $this->_params['basedn'];
but, findUserDN is not correctly setting the parameters passed.
below is the output.
Nov 21 2013 14:53:57 DEBUG: HORDE [passwd] Failure in changing password for
LDAP Server: Bad search filter
Parameters:
Base: dc=xxx
Filter: (&(objectclass=)(=asa)
In the above statements, dc=xxx is correct.
the Filter should have populated as
(mailacceptinggeneralid=asa)
I have set uid=> mailacceptinggeneraid
and filter => ''
in backends.local.php of passwd for LDAP driver.