* @throws Horde_History_Exception
* @throws InvalidArgumentException
*/
- public function updateGroup(Horde_Group_DataTreeObject $group)
+ public function updateGroup(Horde_Group_LdapObject $group)
{
$entry = $group->toAttributes();
*/
public function toAttributes()
{
- $attributes = array();
+ $member = Horde_String::lower($GLOBALS['conf']['group']['params']['memberuid']);
+ $attributes = array($member => array());
foreach ($this->data as $key => $value) {
if ($key == 'users') {
foreach ($value as $user => $membership) {
$user = $GLOBALS['conf']['auth']['params']['uid'] .
'=' . $user . ',' . $GLOBALS['conf']['auth']['params']['basedn'];
}
- $attributes[Horde_String::lower($GLOBALS['conf']['group']['params']['memberuid'])][] = $user;
+ $attributes[$member][] = $user;
}
} elseif ($key == 'email') {
if (!empty($value)) {