[Tickets #12128] Re: Bad search filter ldap Groups

noreply at bugs.horde.org noreply at bugs.horde.org
Mon May 5 09:51:10 UTC 2014


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

Ticket URL: http://bugs.horde.org/ticket/12128
------------------------------------------------------------------------------
  Ticket             | 12128
  Updated By         | gerard.breiner at ias.u-psud.fr
  Summary            | Bad search filter ldap Groups
  Queue              | Horde Framework Packages
  Version            | Git master
  Type               | Bug
  State              | Assigned
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             | Jan Schneider
------------------------------------------------------------------------------


gerard.breiner at ias.u-psud.fr (2014-05-05 09:51) wrote:

I am not sure my previous comment is well readable because of bad  
characters... So I formulate again what I meant.

When we go to the kronolith interface then the function  
listGroups($user) is called. This function is defined in  
Horde/Group/Ldap.php.
Then listGroups($user) call findUserDN($user).
But at this time when we are in findUserDN()  the array  
$this->_config['user']['uid'] doesn't exist because we come from  
Horde_Group_Ldap which has no parameter uid in the group config.
In others words there is not $conf['group']['params']['uid'] = 'uid';  
in horde/config/conf.php and it is right.
In fact it is  $conf['group']['params']['memberuid'] that should be  
evaluate against $user into findUserDN. But given that findUserDN is  
also used for authentication, I created a new function in  
Horde/Ldap.php that I call findGroupUserDN() and put into her  
memberuid instead uid  and replaced findUserDN by findGroupUserDN into  
Horde/Group/listGroups().
This time I have no longer the message 'bad filter' but I get the  
error message :

DN for user webadm not found

  1. Kronolith_Ajax->init() /www/horde5/kronolith/index.php:137
  2. Kronolith_Ajax->_addBaseVars() /www/horde5/kronolith/lib/Ajax.php:32
  3. Kronolith::getDefaultCalendar() /www/horde5/kronolith/lib/Ajax.php:90
  4. Kronolith::listInternalCalendars()  
/www/horde5/kronolith/lib/Kronolith.php:1384
  5. Horde_Core_Share_Driver->listShares()  
/www/horde5/kronolith/lib/Kronolith.php:1265
  6. Horde_Core_Share_Driver->__call()  
/www/horde5/kronolith/lib/Kronolith.php:1265
  7. call_user_func_array() /www/horde5/pear/php/Horde/Core/Share/Driver.php:63
  8. Horde_Share_Sql->listShares()
  9. Horde_Share_Sql->getShareCriteria()  
/www/horde5/pear/php/Horde/Share/Sql.php:385
10. Horde_Share_Sql->_getUserAndGroupCriteria()  
/www/horde5/pear/php/Horde/Share/Sql.php:771
11. Horde_Group_Ldap->listGroups()  
/www/horde5/pear/php/Horde/Share/Sql.php:862
12. Horde_Ldap->findGroupUserDN()  
/www/horde5/pear/php/Horde/Group/Ldap.php:389

At this stage I would be pleased to have some help.

Best regards.

Gérard Breiner





More information about the bugs mailing list