e107_plugins/alt_auth/ldap_auth.php
Avoid too many return
statements within this method. Open
Open
return AUTH_SUCCESS;
Avoid too many return
statements within this method. Open
Open
if (count($this->copyAttribs) == 0) return AUTH_SUCCESS; // No attributes required - we're done
Avoid too many return
statements within this method. Open
Open
return AUTH_BADPASSWORD;
Avoid too many return
statements within this method. Open
Open
return AUTH_NOUSER; // Bit debateable what to return if this happens
Avoid too many return
statements within this method. Open
Open
return AUTH_NOCONNECT; // Not really a suitable return code for this - its an error
Avoid too many return
statements within this method. Open
Open
return AUTH_NOCONNECT;
Avoid too many return
statements within this method. Open
Open
if (trim($pass) == '') return AUTH_BADPASSWORD; // Pick up a blank password
Avoid too many return
statements within this method. Open
Open
return AUTH_NOUSER;
Reference to undeclared constant \AUTH_SUCCESS
Open
Open
if ($connect_only) return AUTH_SUCCESS;
- Exclude checks
Parameter $newvals
has undeclared type \pointer
Open
Open
function login($uname, $pass, &$newvals, $connect_only = false)
- Exclude checks
Reference to undeclared property \auth_login,2->result
Open
Open
$this->result = ldap_bind($this->connection);
- Exclude checks
Reference to undeclared property \auth_login,2->result
Open
Open
if ($this->result === false)
- Exclude checks
Reference to undeclared constant \AUTH_SUCCESS
Open
Open
if ($connect_only) return AUTH_SUCCESS;
- Exclude checks
Reference to undeclared constant \AUTH_SUCCESS
Open
Open
return AUTH_SUCCESS;
- Exclude checks
Reference to undeclared constant \AUTH_NOCONNECT
Open
Open
return AUTH_NOCONNECT;
- Exclude checks
Reference to undeclared constant \AUTH_BADPASSWORD
Open
Open
if (trim($pass) == '') return AUTH_BADPASSWORD; // Pick up a blank password
- Exclude checks
Reference to undeclared property \auth_login,2->result
Open
Open
$this->result = ldap_search($this->connection, $checkDn, $current_filter, $ldap_attributes);
- Exclude checks
Reference to undeclared constant \AUTH_NOUSER
Open
Open
return AUTH_NOUSER; // Bit debateable what to return if this happens
- Exclude checks
Variable $altauth_dc
is undeclared Open
Open
foreach($altauth_tmp as $$altauth_dc)
- Exclude checks
Reference to undeclared constant \AUTH_NOUSER
Open
Open
return AUTH_NOUSER;
- Exclude checks
Variable $altauth_dc
is undeclared Open
Open
$checkDn .= ",DC={$altauth_dc}";
- Exclude checks
Reference to undeclared property \auth_login,2->result
Open
Open
if ($this->result)
- Exclude checks
Reference to undeclared constant \AUTH_BADPASSWORD
Open
Open
return AUTH_BADPASSWORD;
- Exclude checks
Reference to undeclared constant \AUTH_NOCONNECT
Open
Open
return AUTH_NOCONNECT;
- Exclude checks
Found a return statement with a value in the implementation of the magic method \auth_login,2::__construct,
expected void return type Open
Open
public function __construct()
- Exclude checks
Reference to undeclared property \auth_login,2->result
Open
Open
$this->result = ldap_bind($this->connection, $checkDn, $pass);
- Exclude checks
Reference to undeclared constant \AUTH_SUCCESS
Open
Open
return AUTH_SUCCESS;
- Exclude checks
Reference to undeclared constant \AUTH_NORESOURCE
Open
Open
return AUTH_NORESOURCE;
- Exclude checks
Reference to undeclared property \auth_login,2->result
Open
Open
$this->result = ldap_bind($this->connection, $this->usr, $this->pwd);
- Exclude checks
Reference to undeclared property \auth_login,2->result
Open
Open
if ($this->result)
- Exclude checks
Class \auth_login
defined at /code/e107_plugins/alt_auth/ldap_auth.php:23
was previously defined as Class \auth_login
at /code/e107_plugins/alt_auth/e107db_auth.php:34
Open
Open
class auth_login extends alt_auth_base
- Exclude checks
Reference to undeclared constant \AUTH_SUCCESS
Open
Open
if (count($this->copyAttribs) == 0) return AUTH_SUCCESS; // No attributes required - we're done
- Exclude checks
Reference to undeclared property \auth_login,2->result
Open
Open
$entries = ldap_get_entries($this->connection, $this->result);
- Exclude checks
Reference to undeclared constant \AUTH_NOCONNECT
Open
Open
return AUTH_NOCONNECT;
- Exclude checks
Reference to undeclared constant \AUTH_NOCONNECT
Open
Open
return AUTH_NOCONNECT;
- Exclude checks
Reference to undeclared constant \AUTH_NOUSER
Open
Open
else return AUTH_NOUSER;
- Exclude checks
Suspicious array access to \pointer
Open
Open
$newvals[$tk] = $tlv[0]; // Just grab the first value
- Exclude checks
Reference to undeclared constant \AUTH_NOCONNECT
Open
Open
return AUTH_NOCONNECT; // Not really a suitable return code for this - its an error
- Exclude checks