6.0.0-beta13
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/10/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#12868] Bad Search Filter for changing password using LDAP Driver
*
Your Email Address
*
Spam protection
Enter the letters below:
._..__..__.. ,.___. | | |[__] \./ | _|_|__|| | | |
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.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers