include unsuccessfull session creation and reason in debug logging

This commit is contained in:
Ralf Becker 2013-02-15 16:15:52 +00:00
parent a325583643
commit d44e448976

View File

@ -433,7 +433,7 @@ class egw_session
$this->passwd = $passwd; $this->passwd = $passwd;
$this->passwd_type = $passwd_type; $this->passwd_type = $passwd_type;
} }
if (self::ERROR_LOG_DEBUG) error_log(__METHOD__."($this->login,$this->passwd,$this->passwd_type,$no_session,$auth_check)"); if (self::ERROR_LOG_DEBUG) error_log(__METHOD__."($this->login,$this->passwd,$this->passwd_type,$no_session,$auth_check) starting ...");
self::split_login_domain($login,$this->account_lid,$this->account_domain); self::split_login_domain($login,$this->account_lid,$this->account_domain);
// add domain to the login, if not already there // add domain to the login, if not already there
@ -493,6 +493,7 @@ class egw_session
{ {
$this->log_access($this->reason,$login,$user_ip,0); // log unsuccessfull login $this->log_access($this->reason,$login,$user_ip,0); // log unsuccessfull login
} }
if (self::ERROR_LOG_DEBUG) error_log(__METHOD__."($this->login,$this->passwd,$this->passwd_type,$no_session,$auth_check) UNSUCCESSFULL ($this->reason)");
return false; return false;
} }
if (!$this->account_id && $GLOBALS['egw_info']['server']['auto_create_acct']) if (!$this->account_id && $GLOBALS['egw_info']['server']['auto_create_acct'])
@ -548,6 +549,7 @@ class egw_session
$this->reason = 'account is expired'; $this->reason = 'account is expired';
$this->cd_reason = 98; $this->cd_reason = 98;
if (self::ERROR_LOG_DEBUG) error_log(__METHOD__."($this->login,$this->passwd,$this->passwd_type,$no_session,$auth_check) UNSUCCESSFULL ($this->reason)");
return false; return false;
} }
@ -579,6 +581,7 @@ class egw_session
{ {
$this->reason = $this->cd_reason = $reason; $this->reason = $this->cd_reason = $reason;
$this->log_access($this->reason,$login,$user_ip,$this->account_id); // log unsuccessfull login $this->log_access($this->reason,$login,$user_ip,$this->account_id); // log unsuccessfull login
if (self::ERROR_LOG_DEBUG) error_log(__METHOD__."($this->login,$this->passwd,$this->passwd_type,$no_session,$auth_check) UNSUCCESSFULL ($this->reason)");
return false; return false;
} }
} }