forked from extern/egroupware
* Mail/ActiveDirectory: fix empty identity in mail compose and account not active in AD controled mail-server
This commit is contained in:
parent
637b579637
commit
0528b72744
@ -429,7 +429,7 @@ class Ldap extends Mail\Smtp
|
||||
if (static::FORWARD_ONLY_ATTR)
|
||||
{
|
||||
// Univention has no extra forward-only attr, but requires primary mail to be in forwards, to have also local delivery
|
||||
if (static::FORWARD_ONLY_ATTR === static::FORWARD_ATTR)
|
||||
if (static::FORWARD_ONLY_ATTR === static::FORWARD_ATTR && !static::FORWARD_PREFIX)
|
||||
{
|
||||
$deliveryMode = '';
|
||||
if ($values[static::FORWARD_ATTR])
|
||||
@ -516,6 +516,7 @@ class Ldap extends Mail\Smtp
|
||||
($k = array_search($userData['mailLocalAddress'],$userData['mailAlternateAddress'])) !== false)
|
||||
{
|
||||
unset($userData['mailAlternateAddress'][$k]);
|
||||
$userData['mailAlternateAddress'] = array_values($userData['mailAlternateAddress']);
|
||||
}
|
||||
|
||||
if (static::QUOTA_ATTR && isset($values[static::QUOTA_ATTR]))
|
||||
|
Loading…
Reference in New Issue
Block a user