55 return $this->storage;
65 $GLOBALS[
'ilLog']->write(__METHOD__.
': Init callbacks');
66 $this->setLoginCallback(array($this,
'loginObserver'));
67 $this->setFailedLoginCallback(array($this,
'failedLoginObserver'));
68 $this->setCheckAuthCallback(array($this,
'checkAuthObserver'));
69 $this->setLogoutCallback(array($this,
'logoutObserver'));
71 include_once(
'Services/Authentication/classes/class.ilAuthLogObserver.php');
73 $this->enableLogging =
true;
85 global
$ilLog, $ilAppEventHandler;
89 $ilAppEventHandler->raise(
"Services/Authentication",
"afterLogin",
90 array(
"user_name" => $a_username));
92 $ilLog->write(__METHOD__.
': logged in as '.$a_username.
93 ', remote:'.$_SERVER[
'REMOTE_ADDR'].
':'.$_SERVER[
'REMOTE_PORT'].
94 ', server:'.$_SERVER[
'SERVER_ADDR'].
':'.$_SERVER[
'SERVER_PORT']
111 $this->
getContainer()->failedLoginObserver($a_username,$a_auth);
112 $ilLog->write(__METHOD__.
': login failed for user '.$a_username.
113 ', remote:'.$_SERVER[
'REMOTE_ADDR'].
':'.$_SERVER[
'REMOTE_PORT'].
114 ', server:'.$_SERVER[
'SERVER_ADDR'].
':'.$_SERVER[
'SERVER_PORT']
126 #$GLOBALS['ilLog']->write(__METHOD__.': Check auth observer called');
127 return $this->
getContainer()->checkAuthObserver($a_username,$a_auth);
138 $GLOBALS[
'ilLog']->write(__METHOD__.
': Logout observer called');
139 $this->
getContainer()->logoutObserver($a_username,$a_auth);