[horde] Ldap-Groups, how to set Objectclass?

Jan Schneider jan at horde.org
Mon Mar 28 19:14:35 UTC 2011


Zitat von michael.groene at zel.uni-hannover.de:

> Zitat von Jan Schneider <jan at horde.org>:
>> Zitat von Michael Gröne <michael.groene at zel.uni-hannover.de>:
>>
>>> Hello,
>>>
>>> I was about, to list groups in the configuration backend, which  
>>> are stored in ActiveDirectory-Ldap.
>>> In our case the list is always empty.
>>> I found out, that in Horde/Group/Ldap.php the params-array is  
>>> merged in the __constructor with some default-settings (line 44ff).
>>>
>>> The problem seems to be the objectclass-setting, which is  
>>> "posixGroup" by default. We need this to be "group". Changing this  
>>> in source code works and we get the groups listed.
>>> So I would like to configure this in the config-backend, but there  
>>> is no field, I can set this value, is it?
>> There is a setting for that in the configuration. Select "One or  
>> more objectclass filters" in the $conf['group']['params']['search']  
>> setting.
>
> That was, what I expected, so I already configured it like that:
> $conf['group']['params']['search']['objectclass'] = array('group');
> $conf['group']['params']['search']['filter_type'] = 'objectclass';
>
> But these settings seem not to be respected in  
> Horde/Groups/Ldap.php:listAll(), when called by admin/groups.php.
> An inserted print_r($this->_filter) at the beginning of listAll() gives:
> Horde_Ldap_Filter Object ( [_filters:protected] => Array ( )  
> [_operator:protected] => [_filter:protected] =>  
> (objectclass=posixGroup) )
>
> So do we need to setup the correct filter first?

Please create a ticket on http://bugs.horde.org/. And please check  
what $params is passed to Horde_Group_Ldap::__construct().

>>> Besides I saw, that adding/editing-code is commented out?
>> Sorry?
>
> Sorry, I meant in admin/groups.php.

No, only child group adding is commented out, because there won't be  
any group hiearchies in Horde 4 anymore.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the horde mailing list