diff options
author | Henrik Lund Kramshoej <hlk@kramse.org> | 2017-07-17 13:38:43 +0200 |
---|---|---|
committer | Henrik Lund Kramshoej <hlk@kramse.org> | 2017-07-17 13:38:43 +0200 |
commit | 489b5dcdaa79180ba6c9004332a4520717c27361 (patch) | |
tree | 9af6a43fc7ae0542ca40e655f4a72eab3099e31e | |
parent | ada1c3f77b9dbb955eab5c62db4708794a8a792c (diff) |
Trying to get uid and eppn shown, does not work yet.
-rw-r--r-- | apache-sp/apache-conf/sp.conf | 4 | ||||
-rw-r--r-- | apache-sp/secure/index.shtml | 2 | ||||
-rw-r--r-- | template-config/attribute-filter.xml | 3 |
3 files changed, 7 insertions, 2 deletions
diff --git a/apache-sp/apache-conf/sp.conf b/apache-sp/apache-conf/sp.conf index 9a2d196..5e32cbc 100644 --- a/apache-sp/apache-conf/sp.conf +++ b/apache-sp/apache-conf/sp.conf @@ -44,6 +44,7 @@ SSLHonorCipherOrder on require valid-user Options +Includes Header set X_REMOTE_USER %{eduPersonPrincipalName}e + Header set UID %{uid}e Header set EPPN %{eduPersonPrincipalName}e Header set MAIL %{mail}e Header set GIVENNAME %{givenName}e @@ -51,8 +52,7 @@ SSLHonorCipherOrder on Header set SN %{sn}e Header set AFFILIATION %{affiliation}e Header set UNSCOPED_AFFILIATION %{unscoped_affiliation}e - Header set UID %{uid}e - + Header set EMPLOYEETYPE %{employeeType}e AddType text/html .shtml AddOutputFilter INCLUDES .shtml </Location> diff --git a/apache-sp/secure/index.shtml b/apache-sp/secure/index.shtml index d800991..f22666f 100644 --- a/apache-sp/secure/index.shtml +++ b/apache-sp/secure/index.shtml @@ -10,11 +10,13 @@ <p><!--#echo var="DATE_LOCAL" --></p> <ul> <li>CN: <!--#echo var="CN" --></li> + <li>uid: <!--#echo var="uid" --></li> <li>eduPersonPrincipalName: <!--#echo var="EPPN" --></li> <li>Display name: <!--#echo var="DISPLAYNAME" --></li> <li>Givenname: <!--#echo var="GIVENNAME" --></li> <li>Surname: <!--#echo var="SN" --></li> <li>Mail: <!--#echo var="MAIL" --></li> + <li>employeeType: <!--#echo var="employeeType" --></li> <li>Affiliation: <!--#echo var="AFFILIATION" --></li> <li>Unscoped affiliation: <!--#echo var="UNSCOPED_AFFILIATION" --></li> </ul> diff --git a/template-config/attribute-filter.xml b/template-config/attribute-filter.xml index 0a58df2..f2aa5f7 100644 --- a/template-config/attribute-filter.xml +++ b/template-config/attribute-filter.xml @@ -39,6 +39,9 @@ <AttributeRule attributeID="commonName"> <PermitValueRule xsi:type="ANY" /> </AttributeRule> + <AttributeRule attributeID="employeeType"> + <PermitValueRule xsi:type="ANY" /> + </AttributeRule> <AttributeRule attributeID="email"> <PermitValueRule xsi:type="ANY" /> </AttributeRule> |