Installing the Shibboleth SP from RPM

The Shibboleth project officially provides up-to-date RPMs for the supported Linux platforms (this is currently a tautology, as we define "supported" to mean "we provide RPMs"). These packages are built via the OpenSUSE project's Build Service, after which they have been mirrored by a very limited set of distribution sites that we hope will grow over time.

A special note applies to Red Hat Enterprise Linux (RHEL) 7 and probably all future versions: because of Red Hat's licensing restrictions, it's impossible for the build service to target RHEL 7 directly. However, CentOS is an identical system, and the packages for it work on the equivalent RHEL versions, so RHEL 7 deployments should rely on the CentOS 7 package repository.

For other RPM-supporting Linux versions, you can usually rebuild the SRPM packages.

Under no circumstances should you attempt to install a set of RPM packages built for/with a different OS or version from your own (apart from the CentOS/RHEL exception noted above). This will usually lead to unpredictable problems and support issues. Instead, you can rebuild the SRPM packages.

RHEL and CentOS 7.4 include a newer version of OpenSSL, and due to an inadvertent rebuild of one package by the SUSE Build Service, the packages for that OS had to be fully rebuilt, which means they no longer support versions older than 7.4. A full yum update to the new OS will include the update to these packages, but updating to them or installing them from scratch will fail if the OS version is older than 7.4. We apologize for the inconvenience but the problem was impossible to recover from.

Installing via Yum

The supported approach is to add a yum repository referencing the Shibboleth Project mirror sites alongside your existing OS-supplied repository. This allows you to manage the Shibboleth packages in a standard way and pick up updates using a single command.

For RHEL, the CentOS team provides some material on using yum.

To get a copy of the appropriate repository file for your system, see https://shibboleth.net/downloads/service-provider/RPMS/ for a simple drop down form that will generate a copy for you. Per the note above, RHEL 7 systems must use the CentOS 7 repository.

If you run into problems, the best first step is to repeat that step and see if you need to make any adjustments to the repository definition to deal with whatever transitory issue(s) might be affecting the situation. If that doesn't work, it's very likely that there's nothing wrong the project can fix, and you should expect a response to that effect if you ask. If anything could be done, it already would have been.

Installation varies by OS, but usually you just drop the definition file into a directory such as /etc/yum.repos.d. You can turn the repository on and off by adjusting the "enabled" property in the file, such as to prevent automated updates and maintain manual control. While enabled, the yum command will "see" the Shibboleth packages when you perform standard operations, and installing the SP should require only a single command:

$ yum install shibboleth
$ yum install shibboleth.x86_64

Be careful of accidentally installing both the 64-bit and 32-bit version on a 64-bit server. The yum repository contains both versions for some OSs and the OS will think it can install both.

After Installation

The RPM installation process will place various components of Shibboleth in appropriate default directories based on your operating system's file system layout. Typically:

Basic Configuration

  1. In httpd.conf:
  2. Restart Apache.
  3. /usr/sbin/shibd must be independently started and run in order to handle requests. The daemon should be loaded and monitored along with all other major services.

  4. By default, the Shibboleth module is configured to log information to the local syslog, with a subset also to the Apache error log.
  5. The shibd service creates its own separate logs in /var/log/shibboleth. This is the most important log used for debugging anything regarding the SP and most problems manifest here rather than on the web server side.