6.0.0-beta6
4/10/26

[#12868] Bad Search Filter for changing password using LDAP Driver
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

History
11/28/2013 09:12:24 AM Jan Schneider State ⇒ Not A Bug
 
11/28/2013 04:47:43 AM asa (at) isac (dot) gov (dot) in Comment #1
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
Reply to this comment
I have enabled findUserDn function in passwd/lib/Ldap.php by doing the 
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'];
---
             $ldapwithdomain = explode("@", $user);
             $ldapuser = $ldapwithdomain[0];
             $this->_userdn = $this->_ldap->findUserDN($ldapuser);
             // $this->_userdn = $this->_params['uid'] . '=' . $user 
. ',' . $this->_params['basedn'];
findUserDN function is available in /usr/share/pear/Horde/Ldap.php

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.

Saved Queries