Shibboleth

  • These instructions are for websites hosted on apache 2.4+ webservers like tigris/arachne (e.g. people.cs.kuleuven.be, ...).
  • More information on available attributes on this KU Leuven page.
  • Information about .htaccess ruls on shibboleth.net.
  • Information about combinations of RequireAll/RequireAny/RequireNone directives on the apache documentation.
  • Create a .htaccess file in the web-directory you wish to protect with KU Leuven shibboleth.

Examples of .htaccess files

  • This will allow everyone with a valid KU Leuven account (staff and students)
    ShibDisable off
    AuthType shibboleth
    ShibRequestSetting requireSession 1
    ShibRequestSetting redirectToSSL 443
    require shib-session
    
  • This will allow both users with u-numbers u0123456 and u06543210.
    ShibDisable off
    AuthType shibboleth
    ShibRequestSetting requireSession 1
    ShibRequestSetting redirectToSSL 443
    require shib-user u0123456@kuleuven.be
    require shib-user u6543210@kuleuven.be
    
  • This will allow only ZAP
    ShibDisable off
    AuthType shibboleth
    ShibRequestSetting requireSession 1
    ShibRequestSetting redirectToSSL 443
    require shib-attr eduPersonScopedAffiliation zap@kuleuven.be
    
  • This will allow only ATP (staff@kuleuven.be) whose given name is Marc
    ShibDisable off
    AuthType shibboleth
    ShibRequestSetting requireSession 1
    ShibRequestSetting redirectToSSL 443
    <RequireAll>
    require shib-attr givenName Marc
    require shib-attr eduPersonScopedAffiliation staff@kuleuven.be
    </RequireAll>
    
  • This will allow every user associated with the departement. 50000525 is the departement`s OU-number (see the last number in the address of the organigram
    ShibDisable off
    AuthType shibboleth
    ShibRequestSetting requireSession 1
    ShibRequestSetting redirectToSSL 443
    require shib-attr eduPersonOrgUnitDN ~ 50000525
    
    Notice the ~ on the last line. It indicates that what follows should be interpreted as a regular expression. In this case it matches the number in the complete value of the shibboleth attribute eduPersonOrgUnitDN.