|
|
@ -21,7 +21,7 @@ class auth_plugin_authhttpldap extends auth_plugin_authldap { |
|
|
|
|
|
|
|
|
|
|
|
// ldap extension is needed |
|
|
|
// ldap extension is needed |
|
|
|
if(!function_exists('ldap_connect')) { |
|
|
|
if(!function_exists('ldap_connect')) { |
|
|
|
$this->_debug("LDAP err: PHP LDAP extension not found.", -1, __LINE__, __FILE__); |
|
|
|
$this->debug("LDAP err: PHP LDAP extension not found.", -1, __LINE__, __FILE__); |
|
|
|
$this->success = false; |
|
|
|
$this->success = false; |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -49,7 +49,7 @@ class auth_plugin_authhttpldap extends auth_plugin_authldap { |
|
|
|
$success = false; |
|
|
|
$success = false; |
|
|
|
if (!isset($_SERVER['REMOTE_USER'])) return false; |
|
|
|
if (!isset($_SERVER['REMOTE_USER'])) return false; |
|
|
|
$username = $_SERVER['REMOTE_USER']; |
|
|
|
$username = $_SERVER['REMOTE_USER']; |
|
|
|
$this->_debug('HTTP User Name: '.htmlspecialchars($username),0,__LINE__,__FILE__); |
|
|
|
$this->debug('HTTP User Name: '.htmlspecialchars($username),0,__LINE__,__FILE__); |
|
|
|
if (!empty($username)){ |
|
|
|
if (!empty($username)){ |
|
|
|
$USERINFO = $this->getUserData($username,true); |
|
|
|
$USERINFO = $this->getUserData($username,true); |
|
|
|
if ($USERINFO !== false){ |
|
|
|
if ($USERINFO !== false){ |
|
|
|