55 return $this->storage;
68 $this->enableLogging =
false;
70 if ($this->enableLogging)
72 $GLOBALS[
'ilLog']->write(__METHOD__.
': Init callbacks');
74 $this->setLoginCallback(array($this,
'loginObserver'));
75 $this->setFailedLoginCallback(array($this,
'failedLoginObserver'));
76 $this->setCheckAuthCallback(array($this,
'checkAuthObserver'));
77 $this->setLogoutCallback(array($this,
'logoutObserver'));
79 include_once(
'Services/Authentication/classes/class.ilAuthLogObserver.php');
94 global
$ilLog, $ilAppEventHandler;
98 $ilAppEventHandler->raise(
"Services/Authentication",
"afterLogin",
99 array(
"username" => $a_auth->getUsername()));
101 $ilLog->write(__METHOD__.
': logged in as '.$a_auth->getUsername().
102 ', remote:'.$_SERVER[
'REMOTE_ADDR'].
':'.$_SERVER[
'REMOTE_PORT'].
103 ', server:'.$_SERVER[
'SERVER_ADDR'].
':'.$_SERVER[
'SERVER_PORT']
120 $ilLog->write(__METHOD__.
': login failed for user '.$a_username.
121 ', remote:'.$_SERVER[
'REMOTE_ADDR'].
':'.$_SERVER[
'REMOTE_PORT'].
122 ', server:'.$_SERVER[
'SERVER_ADDR'].
':'.$_SERVER[
'SERVER_PORT']
124 return $this->
getContainer()->failedLoginObserver($a_username,$a_auth);
135 #$GLOBALS['ilLog']->write(__METHOD__.': Check auth observer called');
136 return $this->
getContainer()->checkAuthObserver($a_username,$a_auth);
149 $GLOBALS[
'ilLog']->write(__METHOD__.
': Logout observer called');
150 $this->
getContainer()->logoutObserver($a_username,$a_auth);