summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apache-sp/Dockerfile2
-rw-r--r--apache-sp/apache-conf/sp.conf1
-rw-r--r--apache-sp/secure/index.shtml15
3 files changed, 15 insertions, 3 deletions
diff --git a/apache-sp/Dockerfile b/apache-sp/Dockerfile
index 27f5013..34db59a 100644
--- a/apache-sp/Dockerfile
+++ b/apache-sp/Dockerfile
@@ -3,7 +3,7 @@ MAINTAINER Markus Krogh <markus@nordu.net>
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN apt-get update && apt-get -y install apache2 libapache2-mod-shib2 ssl-cert curl
-RUN a2enmod shib2 headers ssl
+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/
diff --git a/apache-sp/apache-conf/sp.conf b/apache-sp/apache-conf/sp.conf
index f4ba576..49214b3 100644
--- a/apache-sp/apache-conf/sp.conf
+++ b/apache-sp/apache-conf/sp.conf
@@ -43,6 +43,7 @@ SSLHonorCipherOrder on
ShibRequireSession On
require valid-user
Options +Includes
+ Require all granted
Header set X_REMOTE_USER %{eppn}e
Header set EPPN %{eppn}e
Header set GIVENNAME %{givenName}e
diff --git a/apache-sp/secure/index.shtml b/apache-sp/secure/index.shtml
index e7215ea..8ed476e 100644
--- a/apache-sp/secure/index.shtml
+++ b/apache-sp/secure/index.shtml
@@ -6,7 +6,18 @@
<body>
<div class='wrapper'>
<h1>Environment</h1>
- <pre><!--#printenv --></pre>
- </div>
+ <h1>Test</h1>
+ <p><!--#echo var="DATE_LOCAL" --></p>
+ <ul>
+ <li>eduPersonPrincipalName: <!--#echo var="HTTP_EPPN" --></li>
+ <li>Display name: <!--#echo var="HTTP_DISPLAYNAME" --></li>
+ <li>Givenname: <!--#echo var="HTTP_GIVENNAME" --></li>
+ <li>Surname: <!--#echo var="HTTP_SN" --></li>
+ <li>Mail: <!--#echo var="HTTP_MAIL" --></li>
+ <li>Affiliation: <!--#echo var="HTTP_AFFILIATION" --></li>
+ <li>Unscoped affiliation: <!--#echo var="HTTP_UNSCOPED_AFFILIATION" --></li>
+ </ul>
+ <pre><!--#printenv --></pre>
+ </div>
</body>
</html>