[horde] Ldap-Groups, how to set Objectclass?
michael.groene at zel.uni-hannover.de
michael.groene at zel.uni-hannover.de
Mon Mar 28 08:31:58 UTC 2011
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?
>> Besides I saw, that adding/editing-code is commented out?
> Sorry?
Sorry, I meant in admin/groups.php.
More information about the horde
mailing list