mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-24 06:01:36 +01:00
allways log ldap_mod_replace on error
This commit is contained in:
parent
3b4c11bf35
commit
8fdeaca9b9
@ -146,9 +146,14 @@ class emailadmin_smtp_ldap extends defaultsmtp
|
||||
{
|
||||
$newData[$this->config['mailbox_attr']] = $_hookValues['account_lid'].'@'.$this->defaultDomain;
|
||||
}
|
||||
if ($this->debug) error_log(__METHOD__.'('.array2string(func_get_args()).") --> ldap_mod_replace(,'$accountDN',".array2string($newData).')');
|
||||
|
||||
return ldap_mod_replace($ds, $accountDN, $newData);
|
||||
if (!($ret = ldap_mod_replace($ds, $accountDN, $newData)) || $this->debug)
|
||||
{
|
||||
error_log(__METHOD__.'('.array2string(func_get_args()).") --> ldap_mod_replace(,'$accountDN',".
|
||||
array2string($newData).') returning '.array2string($ret).
|
||||
(!$ret?' ('.ldap_error($ds).')':''));
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user