[horde] Using Dynamic LDAP groups for Horde Groups?

Barry Flanagan barryf-lists at flanagan.ie
Tue Aug 15 07:39:38 PDT 2006


Hi,

Running CVS head, is it possible to use OpenLDAP dynamic groups for
Horde groups?

I have an LDAP group using groupOfURLs and am using the dynlist overlay,
so that a query for this group will return the uids of all members.

I would like to use these dynamic groups as the horde groups, but can't
get it to work.

Here is my setup:

group settings in config.php
$conf['group']['params']['hostspec'] = 'hostname';
$conf['group']['params']['basedn'] = 'dc=example,dc=ie';
$conf['group']['params']['binddn'] = 'uid=xxxxx';
$conf['group']['params']['password'] = 'xxxx';
$conf['group']['params']['version'] = '3';
$conf['group']['params']['gid'] = 'cn';
$conf['group']['params']['memberuid'] = 'uid';
$conf['group']['params']['attrisdn'] = false;
$conf['group']['params']['newgroup_objectclass'] = array('groupOfURLs',
'inetOrgPerson');
$conf['group']['params']['filter'] =
'(&(objectClass=groupOfURLs)(ou=pilot))';
$conf['group']['params']['filter_type'] = 'free';
$conf['group']['driver'] = 'ldap';

Horde will list the groups, although the name it gives the group is very
long, like:
Secondary:Secondary:Pilot:Secondary:Secondary:Pilot:Groups:pilotStudents

..whereas the cn of the group is just pilotStudents and running the LDAP
query manually returns the correct result.

In my slapd debug log I see the following entries:

Aug 15 15:03:29 efs19 slapd[88194]: conn=1 op=1 CMP
dn="cn=username,cn=Staff,cn=Pilot,cn=Secondary,cn=Secondary,cn=Pilot,cn=Secondary,cn=Secondary,dc=example,dc=ie"
attr="cn"
Aug 15 15:03:29 efs19 slapd[88194]: conn=1 op=1 RESULT tag=111 err=32 text=


..where username is the username of the logged in user.

Has anyone successfully use dynamic LDAP  groups as the basis of Horde
groups?

Thanks.



-- 

-Barry Flanagan



More information about the horde mailing list