summaryrefslogtreecommitdiff
path: root/apache-sp
diff options
context:
space:
mode:
authorMarkus Krogh <markus@nordu.net>2017-09-27 17:30:38 +0200
committerMarkus Krogh <markus@nordu.net>2017-09-27 17:30:38 +0200
commitaf0294d5f773bc071128b1ec1712c62f587c7b0a (patch)
treecc645c6a43ab8a65d584349ec4175db69703e825 /apache-sp
parent76d9e04a39c27133a2dcba3edea4ef232c1f09d5 (diff)
eduPersonEntitlement without scritpt :)
Diffstat (limited to 'apache-sp')
-rw-r--r--apache-sp/apache-conf/sp.conf5
-rw-r--r--apache-sp/secure/index.shtml1
2 files changed, 4 insertions, 2 deletions
diff --git a/apache-sp/apache-conf/sp.conf b/apache-sp/apache-conf/sp.conf
index 6678f8e..587004d 100644
--- a/apache-sp/apache-conf/sp.conf
+++ b/apache-sp/apache-conf/sp.conf
@@ -45,9 +45,9 @@ SSLHonorCipherOrder on
ShibRequireSession On
require valid-user
Options +Includes
- Header set X_REMOTE_USER %{eduPersonPrincipalName}e
+ Header set X_REMOTE_USER %{eppn}e
Header set UID %{uid}e
- Header set EPPN %{eduPersonPrincipalName}e
+ Header set EPPN %{eppn}e
Header set MAIL %{mail}e
Header set GIVENNAME %{givenName}e
Header set DISPLAYNAME %{displayName}e
@@ -55,6 +55,7 @@ SSLHonorCipherOrder on
Header set AFFILIATION %{affiliation}e
Header set UNSCOPED_AFFILIATION %{unscoped_affiliation}e
Header set EMPLOYEETYPE %{employeeType}e
+ Header set EDU_PERSON_ENTITLEMENT %{entitlement}e
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</Location>
diff --git a/apache-sp/secure/index.shtml b/apache-sp/secure/index.shtml
index f22666f..bd8233d 100644
--- a/apache-sp/secure/index.shtml
+++ b/apache-sp/secure/index.shtml
@@ -19,6 +19,7 @@
<li>employeeType: <!--#echo var="employeeType" --></li>
<li>Affiliation: <!--#echo var="AFFILIATION" --></li>
<li>Unscoped affiliation: <!--#echo var="UNSCOPED_AFFILIATION" --></li>
+ <li>eduPersonEntitlement: <!--#echo var="EDU_PERSON_ENTITLEMENT" --></li>
</ul>
<pre><!--#printenv --></pre>
</div>