-
Notifications
You must be signed in to change notification settings - Fork 18
Shibboleth_install
If you are lucky the latest Shibboleth SP can be installed via a package manager in your distribution. Always check the official guide to figure out the latest/supported versions.
If you are not planning to use apache chances are you'll need to build from source with fastcgi support, but check you packages first.
Installing libapache2-mod-shib2
creates the necessary configuration files (shibboleth2.xml) and should enable shib2 apache module
Be careful with arch and OS version (use lsb_release -a etc.)
yum install mod_ssl
wget http://download.opensuse.org/repositories/security://shibboleth/RHEL_6/security:shibboleth.repo -P /etc/yum.repos.d
yum install shibboleth.x86_64
You can take the settings from a previous version if you have one (*.logger, attribute-map.xml, shibboleth2.xml). + If you have a metadata template with prefilled contacts etc. (configuration must know about this file if you want these added in the /Metadata).
cd $SHIB_HOME
and modify:
-
shibboleth2.xml
- main config file- add:
<OutOfProcess logger="shibd.logger"/> <InProcess logger="native.logger"/>
- see Registering as SP
-
attribute-map.xml
- mapping from assertion attributes to "env" variables -
shibd.logger
- turn on debug logging
native.logger
-
check that https://localhost/Shibboleth.sso/Status is working
-
follow https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPGettingStarted
-
ensure that the Shibboleth.sso/Metadata is available and that /Status is not available
-
follow https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPApplication
-
you should have added metadataproviders
-
be sure to change the metadata.xml to include also contact information etc like in e.g., https://engine.surfconext.nl/authentication/sp/metadata
Whether you are using CLARIN DS or your own idp discovery for protected resources, the repository comes with it's own UI.
This UI needs access to Shibboleth's DiscoveryFeed handler, you set the path to it in lr.shibboleth.discofeed.url
configuration variable.
You will probably want to overlay the configs to modify the appearance.
In order to enable some of the control panel features you need to allow access to the shibboleth logs:
-
ensure that the paths are correct e.g., /var/log/shibboleth to see this in dspace control panel
-
ensure that debug loggin is switched on shibd.log to debug
-
ensure that the directory is accessible by tomcat /var/log/shibboleth does not need to be (+x +r needs to be added)
-
http://technical.bestgrid.org/index.php/Installing_a_Shibboleth_2.x_SP
-
https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPLinuxRPMInstall
-
https://wiki.surfnetlabs.nl/display/surfconextdev/My+First+SP+-+Shibboleth
Follows a list of problems we've encountered during our builds or in runtime.
Check the init.d/systemd script you have created/copied.
In the systemd case it helped to change type from notify
to simple
in the unit file (This thread might shed bit more light on systemd support).
The Status page shows "Cannot connect to shibd process, a site adminstrator should be notified."
The official wiki advises to disable SELinux or set permissive mode.
You can go through the audit logs and allow what is needed (guide taken from another wiki)
yum install policycoreutils-python #apt-get install policycoreutils
cd /etc/shibboleth
grep httpd_t /var/log/audit/audit.log | egrep "shibboleth|shibd" | audit2allow -M httpd_shibd
semodule -i httpd_shibd.pp
- incorrect libcurl, see http://shibboleth.net/pipermail/users/2012-September/005949.html or https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPLinuxRH6
2012-09-21 12:17:11 ERROR XMLTooling.libcurl.InputStream : error while
> fetching https://metadata-server/metadata.xml: (59) Unknown cipher in list: ALL:!aNULL:!LOW:!EXPORT:!SSLv2
put
LD_LIBRARY_PATH=/opt/shibboleth/lib64:$LD_LIBRARY_PATH
into /etc/init.d/shibd
Enable "legacyOrgNames" attribute of MetadataProviders in shibboleth2.xml
Check shibboleth2.xml for md:AssertionConsumerService, check if those are correct
Have a look at the project page