summaryrefslogtreecommitdiffstats
path: root/lib/Auth
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-11-04 08:47:08 -0500
committerAleksander Machniak <machniak@kolabsys.com>2014-11-04 08:47:08 -0500
commite561788b5c9bc243e332c09d86506489deeee796 (patch)
tree434c29987ad5515e6c967de4303c3f56c4d310ca /lib/Auth
parentbe7ef6f18d07aa3f71be0184c8845c646fa09a18 (diff)
downloadwebadmin-e561788b5c9bc243e332c09d86506489deeee796.tar.gz
Return user info in system.authenticate result for better performance (#3858)
Diffstat (limited to 'lib/Auth')
-rw-r--r--lib/Auth/LDAP.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Auth/LDAP.php b/lib/Auth/LDAP.php
index a175fc8..d711c16 100644
--- a/lib/Auth/LDAP.php
+++ b/lib/Auth/LDAP.php
@@ -125,15 +125,15 @@ class LDAP extends Net_LDAP3 {
*
* @return bool|string User ID or False on failure
*/
- public function authenticate($username, $password, $domain = NULL)
+ public function authenticate($username, $password, $domain = null, &$attributes = null)
{
$this->_log(LOG_DEBUG, "Auth::LDAP: authentication request for $username against domain $domain");
- if ($domain == NULL) {
+ if (!$domain) {
$domain = $this->domain;
}
- $result = $this->login($username, $password, $domain);
+ $result = $this->login($username, $password, $domain, $attributes);
if (!$result) {
return false;