mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
Still buggy, but the memberuid attrib is correct now
This commit is contained in:
parent
e86fdd35fd
commit
68b25fceba
@ -243,13 +243,13 @@
|
|||||||
$entry["objectclass"][0] = 'top';
|
$entry["objectclass"][0] = 'top';
|
||||||
$entry["objectclass"][1] = 'posixGroup';
|
$entry["objectclass"][1] = 'posixGroup';
|
||||||
$members = $this->members($this->data["account_id"]);
|
$members = $this->members($this->data["account_id"]);
|
||||||
$entry["memberuid"] = "";
|
$entry["memberuid"] = array();
|
||||||
for ($i=0;$i<count($members);$i++)
|
for ($i=0;$i<count($members);$i++)
|
||||||
{
|
{
|
||||||
$currname = $this->id2name($members[$i]['account_id']);
|
$currname = $this->id2name($members[$i]['account_id']);
|
||||||
if (!$this->isin_array($currname,$entry["memberuid"]))
|
if (!$this->isin_array($currname,$entry["memberuid"]))
|
||||||
{
|
{
|
||||||
$entry["memberuid"][$i] = $currname;
|
$entry["memberuid"][] = $currname;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -723,6 +723,17 @@
|
|||||||
$entry["cn"] = $account_lid;
|
$entry["cn"] = $account_lid;
|
||||||
$entry["objectclass"][0] = 'top';
|
$entry["objectclass"][0] = 'top';
|
||||||
$entry["objectclass"][1] = 'posixGroup';
|
$entry["objectclass"][1] = 'posixGroup';
|
||||||
|
|
||||||
|
$members = $this->members($account_id);
|
||||||
|
$entry["memberuid"] = array();
|
||||||
|
for ($i=0;$i<count($members);$i++)
|
||||||
|
{
|
||||||
|
$currname = $this->id2name($members[$i]['account_id']);
|
||||||
|
if (!$this->isin_array($currname,$entry["memberuid"]))
|
||||||
|
{
|
||||||
|
$entry["memberuid"][] = $currname;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user