<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>auth ldap driver does not use a scope search preference</title> 
  <pubDate>Fri, 10 Apr 2026 19:28:36 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7839</link> 
  <atom:link rel="self" type="application/rss+xml" title="auth ldap driver does not use a scope search preference" href="https://bugs.horde.org/ticket/7839/rss" /> 
  <description>auth ldap driver does not use a scope search preference</description> 
 
   
   
  <item> 
   <title>Hello,



There&#039;s no possibilities to furnish a scope for an</title> 
   <description>Hello,



There&#039;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[&#039;auth&#039;][&#039;params&#039;][&#039;drivers&#039;][&#039;ldap_drv&#039;][&#039;params&#039;][&#039;scope&#039;] =&#039;one&#039;;



listUsers() is returning entries of a subtree search



lib/Horde/Auth/ldap.php



    function listUsers()

    {

        /* Connect to the LDAP server. */

        $result = $this-&gt;_connect();

        if (is_a($result, &#039;PEAR_Error&#039;)) {

            return $result;

        }



        $filter = $this-&gt;_getParamFilter();



There should be a test here (search or list)



        $search = @ldap_search($this-&gt;_ds, $this-&gt;_params[&#039;basedn&#039;], $filter,

                               array($this-&gt;_params[&#039;uid&#039;]));



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



</description> 
   <pubDate>Mon, 12 Jan 2009 13:16:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7839#t51672</link> 
  </item> 
   
  <item> 
   <title>Could you consolidate those suggestions into a patch?</title> 
   <description>Could you consolidate those suggestions into a patch?</description> 
   <pubDate>Mon, 12 Jan 2009 16:02:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7839#t51674</link> 
  </item> 
   
  <item> 
   <title>&gt; Could you consolidate those suggestions into a patch?

Wel</title> 
   <description>&gt; 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&#039;ve seen there is a pear object choosing ldap function at object creation.



I&#039;m waiting for your suggestions



Dom</description> 
   <pubDate>Mon, 12 Jan 2009 16:24:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7839#t51675</link> 
  </item> 
   
  <item> 
   <title>&gt; Could you consolidate those suggestions into a patch?

I&#039;v</title> 
   <description>&gt; Could you consolidate those suggestions into a patch?

I&#039;ve got no feedback, but I joined a little patch



Here it is. Just conf.xml and ldap Auth 



Dom </description> 
   <pubDate>Thu, 22 Jan 2009 15:59:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7839#t51897</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/framework/Auth/Auth/ldap.php?rt=horde&amp;r1=1.92&amp;r2=1.93&amp;ty=u
http://cvs.horde.org/diff.php/horde/config/conf.xml?rt=horde&amp;r1=1.248&amp;r2=1.249&amp;ty=u
http://cvs.horde.org/diff.php/horde/docs/CHANGES?rt=horde&amp;r1=1.1219&amp;r2=1.1220&amp;ty=u</description> 
   <pubDate>Sat, 04 Apr 2009 09:39:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7839#t53497</link> 
  </item> 
   
  <item> 
   <title>Committed, thanks.</title> 
   <description>Committed, thanks.</description> 
   <pubDate>Sat, 04 Apr 2009 09:39:15 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7839#t53498</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/framework/Auth/Auth/ldap.php?rt=horde&amp;r1=1.47.10.29&amp;r2=1.47.10.30&amp;ty=u
http://cvs.horde.org/diff.php/horde/config/conf.xml?rt=horde&amp;r1=1.74.2.81&amp;r2=1.74.2.82&amp;ty=u
http://cvs.horde.org/diff.php/horde/docs/CHANGES?rt=horde&amp;r1=1.515.2.519&amp;r2=1.515.2.520&amp;ty=u</description> 
   <pubDate>Sat, 04 Apr 2009 10:07:15 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7839#t53502</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
