[horde] Groups with Ldap-driver in Horde4

Harald Hutter hutter at ihs.ac.at
Mon Sep 13 16:40:13 UTC 2010


On Monday 13 September 2010, Jan Schneider wrote:
> Zitat von Michael Gröne <michael.groene at zew.uni-hannover.de>:
> >  Hello,
> >
> > in H3 it didn't work for me, in H4 it doesn't work, too.
> > The problem is to get group memberships in the function
> > getGroupMembers() in ldap.php.
> >
> > For H4 I changed the code as seen below, which is working for me.
> > Is the data structure in ldap-directories other than ActiveDirectory
> > another? Maybe then there is a need for a switch in the config?
> >
> > Part of getGroupMembers in lib/Horde/Group/ldap.php
> >             for ($i = 0; $i < $result['count']; $i++) {
> >                 $utf8_dn =
> > Horde_String::convertCharset($result[$i]['dn'], 'UTF-8',
> > $current_charset);
> >                 $groups[$utf8_dn] = $this->getGroupName($utf8_dn);
> >             }
> > ------------
> > changed to:
> >             for ($i = 0; $i < $result['0']['memberof']['count']; $i++) {
> >                 $utf8_dn =
> > Horde_String::convertCharset($result['0']['memberof'][$i], 'UTF-8',
> > $current_charset);
> >                 $groups[$utf8_dn] = $this->getGroupName($utf8_dn);
> >             }
> >
> >
> > kind regards,
>
> Try again, I just pushed a bunch of ldap group driver fixes.
>
> Jan.
>
Michael, if you have troubles and just get an empty screen, the following
worked for me:
in framework/Group/lib/Horde/Group/Ldap.php 
on line 459, I get
an syntax error "unexpected }"
changing the line
$cache[$group] = $res
to
$cache[$group] = $res;

regards,
Harald




More information about the horde mailing list