mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
return which AD server we (tried) to contact in error-messages
This commit is contained in:
parent
47a48b386f
commit
d768cc7d94
@ -1456,6 +1456,23 @@ class adLDAP extends \adLDAP
|
||||
}
|
||||
return $this->utilClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get last error from Active Directory.
|
||||
*
|
||||
* Reimplemented to return which AD we're connecting.
|
||||
*
|
||||
* return string
|
||||
*/
|
||||
public function getLastError()
|
||||
{
|
||||
$url = $this->useTLS ? 'ldaps://' : 'ldap://';
|
||||
if (!empty($this->adminUsername)) $url .= $this->adminUsername.'@'.$this->accountSuffix.'@';
|
||||
$url .= implode(',', $this->domainControllers);
|
||||
if (!empty($this->adPort)) $url .= ':'.$this->adPort;
|
||||
|
||||
return $url.': '.parent::getLastError();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user