From b446c181f747758a71c1cfc9a525b4d11842500d Mon Sep 17 00:00:00 2001 From: Henrik Lund Kramshoej Date: Mon, 17 Jul 2017 08:48:24 +0200 Subject: sync before more changes --- apache-sp/Dockerfile | 1 + apache-sp/apache-conf/sp.conf | 6 +- apache-sp/secure/index.shtml | 16 ++--- apache-sp/shibd/attribute-map.xml | 142 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 154 insertions(+), 11 deletions(-) create mode 100644 apache-sp/shibd/attribute-map.xml (limited to 'apache-sp') diff --git a/apache-sp/Dockerfile b/apache-sp/Dockerfile index 34db59a..e433a5f 100644 --- a/apache-sp/Dockerfile +++ b/apache-sp/Dockerfile @@ -8,6 +8,7 @@ RUN a2enmod shib2 headers ssl include RUN rm -f /etc/apache2/sites-available/* /etc/apache2/sites-enabled/* ADD apache-conf/*.conf /etc/apache2/sites-available/ ADD shibd/shibboleth2.xml /etc/shibboleth/ +ADD shibd/attribute-map.xml /etc/shibboleth/ ADD secure /var/www/secure ADD entrypoint.sh /entrypoint.sh ADD nordunet.png /usr/share/shibboleth/nordunet.png diff --git a/apache-sp/apache-conf/sp.conf b/apache-sp/apache-conf/sp.conf index f4ba576..9a2d196 100644 --- a/apache-sp/apache-conf/sp.conf +++ b/apache-sp/apache-conf/sp.conf @@ -43,12 +43,12 @@ SSLHonorCipherOrder on ShibRequireSession On require valid-user Options +Includes - Header set X_REMOTE_USER %{eppn}e - Header set EPPN %{eppn}e + Header set X_REMOTE_USER %{eduPersonPrincipalName}e + Header set EPPN %{eduPersonPrincipalName}e + Header set MAIL %{mail}e Header set GIVENNAME %{givenName}e Header set DISPLAYNAME %{displayName}e Header set SN %{sn}e - Header set MAIL %{mail}e Header set AFFILIATION %{affiliation}e Header set UNSCOPED_AFFILIATION %{unscoped_affiliation}e Header set UID %{uid}e diff --git a/apache-sp/secure/index.shtml b/apache-sp/secure/index.shtml index 77ef369..d800991 100644 --- a/apache-sp/secure/index.shtml +++ b/apache-sp/secure/index.shtml @@ -9,14 +9,14 @@

Test

diff --git a/apache-sp/shibd/attribute-map.xml b/apache-sp/shibd/attribute-map.xml new file mode 100644 index 0000000..9d48917 --- /dev/null +++ b/apache-sp/shibd/attribute-map.xml @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.1