mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 02:43:22 +01:00
return which AD server we (tried) to contact in error-messages
This commit is contained in:
parent
293cf669a0
commit
f40d854592
@ -1547,6 +1547,23 @@ class adLDAP extends \adLDAP
|
|||||||
}
|
}
|
||||||
return $this->utilClass;
|
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