[Tickets #7839] auth ldap driver does not use a scope search preference

bugs at horde.org bugs at horde.org
Mon Jan 12 13:16:35 UTC 2009


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

Ticket URL: http://bugs.horde.org/ticket/7839
------------------------------------------------------------------------------
  Ticket             | 7839
  Created By         | dom.lalot at gmail.com
  Summary            | auth ldap driver does not use a scope search preference
  Queue              | Horde Groupware Webmail Edition
  Version            | 1.2.1
  Type               | Enhancement
  State              | New
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


dom.lalot at gmail.com (2009-01-12 08:16) wrote:

Hello,

There's no possibilities to furnish a scope for an ldap search  
(horde/config/conf.xml has no value for that), and trying to force a  
value does not work either in composite

Using composite:
$conf['auth']['params']['drivers']['ldap_drv']['params']['scope'] ='one';

listUsers() is returning entries of a subtree search

lib/Horde/Auth/ldap.php

     function listUsers()
     {
         /* Connect to the LDAP server. */
         $result = $this->_connect();
         if (is_a($result, 'PEAR_Error')) {
             return $result;
         }

         $filter = $this->_getParamFilter();

There should be a test here (search or list)

         $search = @ldap_search($this->_ds, $this->_params['basedn'], $filter,
                                array($this->_params['uid']));

Old accounts are stored in ou=old,ou=people and scope should be one  
for us. It also speeds the search








More information about the bugs mailing list