diff --git a/base/container_files/httpd/grouper-testapp.conf b/base/container_files/httpd/grouper-testapp.conf index ccec3ab..933a741 100644 --- a/base/container_files/httpd/grouper-testapp.conf +++ b/base/container_files/httpd/grouper-testapp.conf @@ -2,10 +2,20 @@ AuthType shibboleth ShibRequestSetting requireSession 1 ShibRequireSession on - require shibboleth + Require shibboleth Options +ExecCGI AddHandler cgi-script .py DirectoryIndex index.py + + + + AuthType shibboleth + ShibRequestSetting requireSession 1 + ShibRequireSession on + Require shib-attr entitlement admin superuser + ErrorDocument 401 /app/accessError.html + + DirectoryIndex index.html \ No newline at end of file diff --git a/base/container_files/seed-data/users.ldif b/base/container_files/seed-data/users.ldif index e5dd0b5..7f6e648 100644 --- a/base/container_files/seed-data/users.ldif +++ b/base/container_files/seed-data/users.ldif @@ -35,11 +35,13 @@ objectClass: organizationalPerson objectClass: person objectClass: top objectClass: inetOrgPerson +objectClass: eduPerson givenName: Bob uid: banderson sn: Anderson cn: Bob Anderson userPassword: password +eduPersonEntitlement: admin dn: cn=users,ou=Groups,dc=internet2,dc=edu objectClass: groupOfUniqueNames diff --git a/base/container_files/shibboleth-idp/conf/attribute-filter.xml b/base/container_files/shibboleth-idp/conf/attribute-filter.xml index 8e0e88f..9d78f5b 100644 --- a/base/container_files/shibboleth-idp/conf/attribute-filter.xml +++ b/base/container_files/shibboleth-idp/conf/attribute-filter.xml @@ -33,7 +33,7 @@ - + diff --git a/base/container_files/var-www-html/app/accessError.html b/base/container_files/var-www-html/app/accessError.html new file mode 100644 index 0000000..6643c5a --- /dev/null +++ b/base/container_files/var-www-html/app/accessError.html @@ -0,0 +1,24 @@ + + + + + + + + Authorization Failed + + + + +

Authorization Failed

+ +

+Based on the information provided to this application about you, you are +not authorized to access the resource because you are not an admin or superuser. +

+ + + + \ No newline at end of file diff --git a/base/container_files/var-www-html/app/admin/index.html b/base/container_files/var-www-html/app/admin/index.html new file mode 100644 index 0000000..36a3866 --- /dev/null +++ b/base/container_files/var-www-html/app/admin/index.html @@ -0,0 +1,9 @@ + + + Secure Area + + +

Welcome to the Secure Area

+

You are special so you were allowed in.

+ + \ No newline at end of file