|
|
|
@ -21,7 +21,7 @@ class auth_plugin_authhttpldap extends auth_plugin_authldap { |
|
|
|
|
|
|
|
|
|
// ldap extension is needed |
|
|
|
|
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; |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
@ -49,7 +49,7 @@ class auth_plugin_authhttpldap extends auth_plugin_authldap { |
|
|
|
|
$success = false; |
|
|
|
|
if (!isset($_SERVER['REMOTE_USER'])) return false; |
|
|
|
|
$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)){ |
|
|
|
|
$USERINFO = $this->getUserData($username,true); |
|
|
|
|
if ($USERINFO !== false){ |
|
|
|
|