[Tickets #12868] Bad Search Filter for changing password using LDAP Driver

noreply at bugs.horde.org noreply at bugs.horde.org
Thu Nov 28 04:47:43 UTC 2013


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/12868
------------------------------------------------------------------------------
  Ticket             | 12868
  Created By         | asa at isac.gov.in
  Summary            | Bad Search Filter for changing password using LDAP
                     | Driver
  Queue              | Horde Groupware Webmail Edition
  Version            | 5.1.3
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


asa at isac.gov.in (2013-11-28 04:47) wrote:

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.





More information about the bugs mailing list