From 0b9709f5fb44a3546471beefb18aa046b15236fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Wed, 24 Oct 2007 12:05:06 +0000 Subject: [PATCH] Contribution from Bob and lukas, for adding mulitple certificates in the authnresponse git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@50 44740490-163a-0410-bde0-09ae8108e29a --- www/_include.php | 3 ++- www/saml2/sp/AssertionConsumerService.php | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/www/_include.php b/www/_include.php index ab5e7dcab..581bc17be 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 2c2d99066..1af5e5fe0 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)) { -- GitLab