mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
fallback for posixGroup no structural object was missing
This commit is contained in:
parent
7c203162fa
commit
076711adbf
@ -216,9 +216,18 @@ class accounts_backend
|
||||
if ($old && !ldap_modify($this->ds,$dn,$to_write) ||
|
||||
!$old && !ldap_add($this->ds,$dn,$to_write))
|
||||
{
|
||||
echo "ldap_".($old ? 'modify' : 'add')."(,$dn,".print_r($to_write,true).")\n";
|
||||
echo ldap_error($this->ds);
|
||||
return false;
|
||||
$err = true;
|
||||
if (!$old && $is_group)
|
||||
{
|
||||
$to_write['objectclass'][] = 'namedobject';
|
||||
$err = !ldap_add($this->ds,$dn,$to_write);
|
||||
}
|
||||
if ($err)
|
||||
{
|
||||
echo "ldap_".($old ? 'modify' : 'add')."(,$dn,".print_r($to_write,true).")\n";
|
||||
echo ldap_error($this->ds);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if ($memberships) // setting the previous memberships of the renamed account
|
||||
{
|
||||
@ -754,7 +763,7 @@ class accounts_backend
|
||||
}
|
||||
if (!ldap_modify($this->ds,'cn='.$cn.','.$this->group_context,array('memberUid' => array_values(array_unique($members)))))
|
||||
{
|
||||
echo "ldap_modify(,'cn=$cn','$this->group_context',array('memberUid' => ".print_r(array_values(array_unique($members)),true)."))\n";
|
||||
echo "ldap_modify(,'cn=$cn,$this->group_context',array('memberUid' => ".print_r(array_values(array_unique($members)),true)."))\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user