mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
* LDAP: fix LDAP protocol error creating new groups without a description
make sure not to unset (empty) description for new groups
This commit is contained in:
parent
4ddf327185
commit
b4eafbcd70
@ -615,8 +615,10 @@ class Ldap
|
|||||||
{
|
{
|
||||||
$to_write['gidnumber'] = abs($data['account_id']);
|
$to_write['gidnumber'] = abs($data['account_id']);
|
||||||
$to_write['cn'] = $data['account_lid'];
|
$to_write['cn'] = $data['account_lid'];
|
||||||
// do not overwrite exitsting description, if non is given
|
// do not overwrite existing description, if non is given
|
||||||
if (isset($data['account_description']))
|
if (isset($data['account_description']) &&
|
||||||
|
// make sure NOT to unset description for new groups, give a "Protocol error"
|
||||||
|
(!empty($data['account_id']) || !empty($data['account_description'])))
|
||||||
{
|
{
|
||||||
$to_write['description'] = !empty($data['account_description']) ? $data['account_description'] : array();
|
$to_write['description'] = !empty($data['account_description']) ? $data['account_description'] : array();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user