6.0.0-beta1
7/3/25

[#7839] auth ldap driver does not use a scope search preference
Summary auth ldap driver does not use a scope search preference
Queue Horde Framework Packages
Queue Version HEAD
Type Enhancement
State Resolved
Priority 2. Medium
Owners jan (at) horde (dot) org
Requester dom.lalot (at) gmail (dot) com
Created 01/12/2009 (6016 days ago)
Due
Updated 04/04/2009 (5934 days ago)
Assigned 01/27/2009 (6001 days ago)
Resolved 04/04/2009 (5934 days ago)
Milestone 3.3.4
Patch Yes

History
04/04/2009 09:39:15 AM Jan Schneider Comment #6
Assigned to Jan Schneider
Taken from Horde DevelopersHorde Developers
State ⇒ Resolved
Reply to this comment
Committed, thanks.
01/27/2009 02:47:58 PM Jan Schneider Patch ⇒ Yes
Milestone ⇒ 3.3.4
Priority ⇒ 2. Medium
State ⇒ Assigned
Assigned to Horde DevelopersHorde Developers
 
01/27/2009 02:47:32 PM Jan Schneider Queue ⇒ Horde Framework Packages
Version ⇒ HEAD
 
01/22/2009 03:59:50 PM dom (dot) lalot (at) gmail (dot) com Comment #4
New Attachment: Nouveau Document texte.txt Download
Reply to this comment
Could you consolidate those suggestions into a patch?
I've got no feedback, but I joined a little patch



Here it is. Just conf.xml and ldap Auth



Dom
01/12/2009 04:24:20 PM dom (dot) lalot (at) gmail (dot) com Comment #3 Reply to this comment
Could you consolidate those suggestions into a patch?
Well,



Why not, but I have to modify lots of files. Just try a grep on 
ldap_search or ldap_list, you will see a big difference.

I hate php ldap api, in perl, scope is just a parameter.



Adding that functionality is not easy. I've seen there is a pear 
object choosing ldap function at object creation.



I'm waiting for your suggestions



Dom
01/12/2009 04:02:19 PM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
Could you consolidate those suggestions into a patch?
01/12/2009 01:16:34 PM dom (dot) lalot (at) gmail (dot) com Comment #1
Priority ⇒ 1. Low
State ⇒ New
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Groupware Webmail Edition
Summary ⇒ auth ldap driver does not use a scope search preference
Type ⇒ Enhancement
Reply to this comment
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




Saved Queries