delete group of names memberships
This commit is contained in:
parent
4301da3748
commit
52036fcbe6
|
@ -710,6 +710,22 @@ class posixAccount extends baseModule implements passwordService {
|
||||||
for ($i = 0; $i < sizeof($groups); $i++) {
|
for ($i = 0; $i < sizeof($groups); $i++) {
|
||||||
$return[$groups[$i]['dn']]['remove']['memberUid'][] = $this->attributes['uid'][0];
|
$return[$groups[$i]['dn']]['remove']['memberUid'][] = $this->attributes['uid'][0];
|
||||||
}
|
}
|
||||||
|
// remove from group of names
|
||||||
|
$dn = $this->getAccountContainer()->dn_orig;
|
||||||
|
$gonTypes = array('group');
|
||||||
|
$types = $_SESSION['config']->get_ActiveTypes();
|
||||||
|
if (in_array('gon', $types)) {
|
||||||
|
$gonTypes[] = 'gon';
|
||||||
|
}
|
||||||
|
$gons = searchLDAPByFilter('(|(member=' . $dn . ')(uniqueMember=' . $dn . '))', array('member', 'uniqueMember'), $gonTypes);
|
||||||
|
for ($i = 0; $i < sizeof($gons); $i++) {
|
||||||
|
if (isset($gons[$i]['member'])) {
|
||||||
|
$return[$gons[$i]['dn']]['remove']['member'][] = $dn;
|
||||||
|
}
|
||||||
|
elseif (isset($gons[$i]['uniquemember'])) {
|
||||||
|
$return[$gons[$i]['dn']]['remove']['uniqueMember'][] = $dn;
|
||||||
|
}
|
||||||
|
}
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue