Skip to content

Shibboleth service provider with SSL support

Notifications You must be signed in to change notification settings

up2university/shibboleth-sp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This is a fork of jtgasper's centos-shibboleth-sp.

The main purpose of this fork is to fix errors, add features and review possible future updates before applying them to this container.

Features

  • Shibboleth SP, OpenSuse repository, latest
  • Apache, latest with mod_ssl

Ports 80 and 443 are exposed for traffic.

Usage

Mount the files to the container you wish to change. The most common files to change are:

  • /etc/shibboleth/shibboleth2.xml
    • Shibboleth SP configuration
  • /etc/httpd/conf.d/shib.conf
    • Shibboleth protected content configuration
  • /etc/pki/tls/certs/*
  • Apache certificates for SSL

If you wish to generate and migrate key-cert files between several redundant instances, mount the following:

  • /etc/shib-volume/

Example configuration

Protect and reverse proxy a url

shib.conf

<Location /software>
  AuthType shibboleth
  ShibRequestSetting requireSession 1
  require shib-session

  ProxyPreserveHost On
  ProxyPass http://softwaredomain:port
  ProxyPassReverse http://softwaredomain:port
</Location>

Configure a single IdP to contact

shibboleth2.xml

...

<ApplicationDefaults entityID="https://yourspdomain/shibboleth" REMOTE_USER="eppn persistent-id targeted-id">

...

<SSO entityID="https://youridpdomain/idp/shibboleth">
  SAML2
</SSO>

...

<MetadataProvider type="XML" validate="true" uri="https://youridpdomain/idp/shibboleth" backingFilePath="federation-metadata.xml" reloadInterval="7200">
</MetadataProvider>

...

Pitfalls

If you have a proxy before this container it may become difficult to configure a combination of HTTP and HTTPS. For easiest configuration use either HTTP or HTTPS for all traffic up to this container.

Good:
Client - HTTPS -> HAProxy - HTTPS -> Shibboleth-SP - HTTP -> Software
Client - HTTP -> HAProxy - HTTP -> Shibboleth-SP - HTTP -> Software

Bad:
Client - HTTPS -> HAProxy - HTTP -> Shibboleth-SP - HTTP -> Software

Authors

Changes

  • Added mod_ssl
  • Added explicit permissions for cmd script
  • Added a folder and symbolic links for key-cert

LICENSE

Copyright 2015 John Gasper

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Shibboleth service provider with SSL support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%