<?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>setup LDAP filter on listAll() for config-backend</title> 
  <pubDate>Fri, 10 Apr 2026 17:20:04 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9739</link> 
  <atom:link rel="self" type="application/rss+xml" title="setup LDAP filter on listAll() for config-backend" href="https://bugs.horde.org/ticket/9739/rss" /> 
  <description>setup LDAP filter on listAll() for config-backend</description> 
 
   
   
  <item> 
   <title>Quoting Jan Schneider &lt;jan@horde.org&gt;:
&gt; Zitat von michael.</title> 
   <description>Quoting Jan Schneider &lt;jan@horde.org&gt;:
&gt; Zitat von michael.groene@zel.uni-hannover.de:
&gt;&gt; Zitat von Jan Schneider &lt;jan@horde.org&gt;:
&gt;&gt;&gt; Zitat von Michael Gröne &lt;michael.groene@zel.uni-hannover.de&gt;:
&gt;&gt;&gt;&gt; I was about, to list groups in the configuration backend, which 
&gt;&gt;&gt;&gt; are stored in ActiveDirectory-Ldap.
&gt;&gt;&gt;&gt; In our case the list is always empty.
&gt;&gt;&gt;&gt; I found out, that in Horde/Group/Ldap.php the params-array is 
&gt;&gt;&gt;&gt; merged in the __constructor with some default-settings (line 44ff).
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; The problem seems to be the objectclass-setting, which is 
&gt;&gt;&gt;&gt; &quot;posixGroup&quot; by default. We need this to be &quot;group&quot;. Changing this 
&gt;&gt;&gt;&gt; in source code works and we get the groups listed.
&gt;&gt;&gt;&gt; So I would like to configure this in the config-backend, but there 
&gt;&gt;&gt;&gt; is no field, I can set this value, is it?
&gt;&gt;&gt; There is a setting for that in the configuration. Select &quot;One or 
&gt;&gt;&gt; more objectclass filters&quot; in the $conf[&#039;group&#039;][&#039;params&#039;][&#039;search&#039;] 
&gt;&gt;&gt; setting.
&gt;&gt;
&gt;&gt; That was, what I expected, so I already configured it like that:
&gt;&gt; $conf[&#039;group&#039;][&#039;params&#039;][&#039;search&#039;][&#039;objectclass&#039;] = array(&#039;group&#039;);
&gt;&gt; $conf[&#039;group&#039;][&#039;params&#039;][&#039;search&#039;][&#039;filter_type&#039;] = &#039;objectclass&#039;;
&gt;&gt;
&gt;&gt; But these settings seem not to be respected in 
&gt;&gt; Horde/Groups/Ldap.php:listAll(), when called by admin/groups.php.
&gt;&gt; An inserted print_r($this-&gt;_filter) at the beginning of listAll() gives:
&gt;&gt; Horde_Ldap_Filter Object ( [_filters:protected] =&gt; Array ( ) 
&gt;&gt; [_operator:protected] =&gt; [_filter:protected] =&gt; 
&gt;&gt; (objectclass=posixGroup) )
&gt;&gt;
&gt;&gt; So do we need to setup the correct filter first?
&gt;
&gt; Please create a ticket on http://bugs.horde.org/. And please check 
&gt; what $params is passed to Horde_Group_Ldap::__construct().

Here is print_r($params);:
Array
(
    [hostspec] =&gt; dc1
    [tls] =&gt; 
    [version] =&gt; 3
    [binddn] =&gt; user
    [bindpw] =&gt; pass
    [bindas] =&gt; admin
    [useldap] =&gt; 1
    [basedn] =&gt; OU=ZEW_Sicherheitsgruppen,DC=ZEW,DC=local
    [scope] =&gt; sub
    [gid] =&gt; cn
    [memberuid] =&gt; member
    [attrisdn] =&gt; 1
    [newgroup_objectclass] =&gt; Array
        (
            [0] =&gt; group
        )

    [search] =&gt; Array
        (
            [objectclass] =&gt; Array
                (
                    [0] =&gt; group
                )

            [filter_type] =&gt; objectclass
        )

    [driverconfig] =&gt; horde
    [umask] =&gt; 63
    [ldap] =&gt; Horde_Ldap Object
        (
            [_config:protected] =&gt; Array
                (
                    [hostspec] =&gt; dc1
                    [port] =&gt; 389
                    [version] =&gt; 3
                    [tls] =&gt; 
                    [binddn] =&gt; user
                    [bindpw] =&gt; pass
                    [basedn] =&gt; OU=ZEW_Sicherheitsgruppen,DC=ZEW,DC=local
                    [options] =&gt; Array
                        (
                        )

                    [filter] =&gt; (objectClass=*)
                    [scope] =&gt; sub
                    [user] =&gt; Array
                        (
                            [hostspec] =&gt; dc1
                            [tls] =&gt; 
                            [version] =&gt; 3
                            [binddn] =&gt; user
                            [bindpw] =&gt; pass
                            [bindas] =&gt; admin
                            [useldap] =&gt; 1
                            [basedn] =&gt; OU=ZEW_Sicherheitsgruppen,DC=ZEW,DC=local
                            [scope] =&gt; sub
                            [gid] =&gt; cn
                            [memberuid] =&gt; member
                            [attrisdn] =&gt; 1
                            [newgroup_objectclass] =&gt; Array
                                (
                                    [0] =&gt; group
                                )

                            [search] =&gt; Array
                                (
                                    [objectclass] =&gt; Array
                                        (
                                            [0] =&gt; group
                                        )

                                    [filter_type] =&gt; objectclass
                                )

                            [driverconfig] =&gt; horde
                            [umask] =&gt; 63
                        )

                    [auto_reconnect] =&gt; 
                    [min_backoff] =&gt; 1
                    [current_backoff] =&gt; 1
                    [max_backoff] =&gt; 32
                    [cache] =&gt; Horde_Cache Object
                        (
                            [_params:protected] =&gt; Array
                                (
                                    [compress] =&gt; 
                                    [lifetime] =&gt; 86400
                                    [sub] =&gt; 0
                                    [umask] =&gt; 63
                                )

                            [_logger:protected] =&gt; Horde_Core_Log_Logger Object
                                (
                                    [_levels:Horde_Log_Logger:private] =&gt; Array
                                        (
                                            [0] =&gt; EMERG
                                            [1] =&gt; ALERT
                                            [2] =&gt; CRIT
                                            [3] =&gt; ERR
                                            [4] =&gt; WARN
                                            [5] =&gt; NOTICE
                                            [6] =&gt; INFO
                                            [7] =&gt; DEBUG
                                        )

                                    [_handlers:Horde_Log_Logger:private] =&gt; Array
                                        (
                                            [0] =&gt; Horde_Log_Handler_Stream Object
                                                (
                                                    [_formatter:protected] =&gt; Horde_Log_Formatter_Simple Object
                                                        (
                                                            [_format:protected] =&gt; %timestamp% %levelName%: %message%

                                                        )

                                                    [_stream:protected] =&gt; Resource id #40
                                                    [_mode:protected] =&gt; a+
                                                    [_streamOrUrl:protected] =&gt; /tmp/horde4.log
                                                    [_options:protected] =&gt; Array
                                                        (
                                                        )

                                                    [_filters:protected] =&gt; Array
                                                        (
                                                            [0] =&gt; Horde_Log_Filter_Level Object
                                                                (
                                                                    [_level:protected] =&gt; 6
                                                                )

                                                        )

                                                )

                                        )

                                    [_filters:Horde_Log_Logger:private] =&gt; Array
                                        (
                                        )

                                )

                            [_storage:protected] =&gt; Horde_Cache_Storage_File Object
                                (
                                    [_dir:protected] =&gt; /tmp
                                    [_file:protected] =&gt; Array
                                        (
                                            [horde_registry|app|1300977270|f942fba5fb05c737e798c688185e88f2] =&gt; /tmp/cache_2990ab4b803ea2f374904714624ffff0
                                            [Horde_Ldap_Schema_185013ebe7b944a5b3c8c4e5721d64d8] =&gt; /tmp/cache_05dd5a6413d0296f3e0f5e5ce6ef759d
                                        )

                                    [_logger:protected] =&gt; Horde_Core_Log_Logger Object
                                        (
                                            [_levels:Horde_Log_Logger:private] =&gt; Array
                                                (
                                                    [0] =&gt; EMERG
                                                    [1] =&gt; ALERT
                                                    [2] =&gt; CRIT
                                                    [3] =&gt; ERR
                                                    [4] =&gt; WARN
                                                    [5] =&gt; NOTICE
                                                    [6] =&gt; INFO
                                                    [7] =&gt; DEBUG
                                                )

                                            [_handlers:Horde_Log_Logger:private] =&gt; Array
                                                (
                                                    [0] =&gt; Horde_Log_Handler_Stream Object
                                                        (
                                                            [_formatter:protected] =&gt; Horde_Log_Formatter_Simple Object
                                                                (
                                                                    [_format:protected] =&gt; %timestamp% %levelName%: %message%

                                                                )

                                                            [_stream:protected] =&gt; Resource id #40
                                                            [_mode:protected] =&gt; a+
                                                            [_streamOrUrl:protected] =&gt; /tmp/horde4.log
                                                            [_options:protected] =&gt; Array
                                                                (
                                                                )

                                                            [_filters:protected] =&gt; Array
                                                                (
                                                                    [0] =&gt; Horde_Log_Filter_Level Object
                                                                        (
                                                                            [_level:protected] =&gt; 6
                                                                        )

                                                                )

                                                        )

                                                )

                                            [_filters:Horde_Log_Logger:private] =&gt; Array
                                                (
                                                )

                                        )

                                    [_params:protected] =&gt; Array
                                        (
                                            [prefix] =&gt; cache_
                                            [sub] =&gt; 0
                                            [umask] =&gt; 63
                                            [lifetime] =&gt; 86400
                                            [compress] =&gt; 1
                                            [logger] =&gt; Horde_Core_Log_Logger Object
                                                (
                                                    [_levels:Horde_Log_Logger:private] =&gt; Array
                                                        (
                                                            [0] =&gt; EMERG
                                                            [1] =&gt; ALERT
                                                            [2] =&gt; CRIT
                                                            [3] =&gt; ERR
                                                            [4] =&gt; WARN
                                                            [5] =&gt; NOTICE
                                                            [6] =&gt; INFO
                                                            [7] =&gt; DEBUG
                                                        )

                                                    [_handlers:Horde_Log_Logger:private] =&gt; Array
                                                        (
                                                            [0] =&gt; Horde_Log_Handler_Stream Object
                                                                (
                                                                    [_formatter:protected] =&gt; Horde_Log_Formatter_Simple Object
                                                                        (
                                                                            [_format:protected] =&gt; %timestamp% %levelName%: %message%

                                                                        )

 ... here are many many lines more, but I think they will just blow up the ticket...</description> 
   <pubDate>Tue, 29 Mar 2011 11:02:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9739#t62774</link> 
  </item> 
   
  <item> 
   <title>&gt;  ... here are many many lines more, but I think they will </title> 
   <description>&gt;  ... here are many many lines more, but I think they will just blow 
&gt; up the ticket...

They might be relevant though, especially if there is a &#039;filter&#039; entry in $params.</description> 
   <pubDate>Tue, 29 Mar 2011 12:34:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9739#t62780</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Fix building</title> 
   <description>Changes have been made in Git for this ticket:

Fix building LDAP filter from configuration (Bug #9739).

 3 files changed, 3 insertions(+), 3 deletions(-)
http://git.horde.org/horde-git/-/commit/6f53dfb76f8a79a3493a3871b1bea8980d2c5704</description> 
   <pubDate>Tue, 29 Mar 2011 12:43:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9739#t62781</link> 
  </item> 
   
  <item> 
   <title>This should fix it.</title> 
   <description>This should fix it.</description> 
   <pubDate>Tue, 29 Mar 2011 12:43:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9739#t62782</link> 
  </item> 
   
  <item> 
   <title>&gt; This should fix it.

Jup, it&#039;s working now. Thank you.
</title> 
   <description>&gt; This should fix it.

Jup, it&#039;s working now. Thank you.
</description> 
   <pubDate>Tue, 29 Mar 2011 13:42:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9739#t62787</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
