diff --git a/www/_include.php b/www/_include.php index ab5e7dcab22bc81bf2339bd474412a5844728c09..581bc17be381879964df37d509a068d40cb93498 100644 --- a/www/_include.php +++ b/www/_include.php @@ -13,6 +13,7 @@ require_once('SimpleSAML/Configuration.php'); SimpleSAML_Configuration::init(dirname(dirname(__FILE__)) . '/config'); - +define_syslog_variables(); +openlog("simpleSAMLphp", LOG_PID, LOG_LOCAL0); ?> \ No newline at end of file diff --git a/www/saml2/sp/AssertionConsumerService.php b/www/saml2/sp/AssertionConsumerService.php index 2c2d99066e241b36c29b2b80eee62903d8ff496c..1af5e5fe0e905a67ddaace7afe8838700f59e8cb 100644 --- a/www/saml2/sp/AssertionConsumerService.php +++ b/www/saml2/sp/AssertionConsumerService.php @@ -24,6 +24,9 @@ try { $session = $authnResponse->createSession(); if (isset($session)) { + + $attributes = $session->getAttributes(); + syslog(LOG_INFO, 'User is authenticated,' . $attributes['mail'] . ',' . $authnResponse->getIssuer()); $relayState = $authnResponse->getRelayState(); if (isset($relayState)) {