mod_shib auf Ubuntu 22.04 / 24.04 komplieren
apt-get install apache2-dev libsystemd-dev libssl-dev libcurl4-openssl-dev libxerces-c-dev libboost-dev pkg-config
wget xmlsec from https://shibboleth.net/downloads/xml-security-c/
./configure --prefix=/etc/shibboleth --with-openssl --with-gnu-ld
make install
export PKG_CONFIG_PATH=/etc/shibboleth/lib/pkgconfig/
wget logshib https://shibboleth.net/downloads/log4shib/latest/
./configure --prefix=/etc/shibboleth --with-gnu-ld
make install
wget xmltooling from https://shibboleth.net/downloads/c++-opensaml/latest/
cd xmltooling
./configure --prefix=/etc/shibboleth --with-xmlsec --with-gnu-ld
make install
wget opensaml from https://shibboleth.net/downloads/c++-opensaml/latest/
./configure --with-gnu-ld
make install
wget service provider from https://shibboleth.net/downloads/service-provider/latest/
./configure --enable-apache-24 --with-gnu-ld --enable-systemd --with-gssapi --prefix=/etc/shibboleth/ --sysconfdir=/etc --localstatedir=/var
make install
ldconfig
useradd shibd
mkdir /var/run/shibboleth/
mkdir /var/log/shibboleth/
chown -R shibd:shibd /var/run/shibboleth/
chown -R shibd:shibd /var/log/shibboleth/
chown -R shibd:shibd /etc/shibboleth/
in /etc/systemd/system/shibd.service
[Unit]
Description=Shibboleth Service Provider Daemon
Documentation=man:shibd(8)
Documentation=https://wiki.shibboleth.net/confluence/display/SP3/Home
After=network.target
Before=apache2.service
[Service]
Type=notify
NotifyAccess=main
User=shibd
Group=shibd
#Environment=LD_LIBRARY_PATH=/opt/shibboleth/lib
ExecStart=/etc/shibboleth/sbin/shibd -f -F
StandardInput=null
StandardOutput=null
StandardError=journal
TimeoutSec=infinity
Restart=on-failure
RestartSec=30s
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl enable shibd
systemctl start shibd
in /etc/tmpfiles.d/shibd.conf
# Directory for shibd socket file
d /run/shibboleth/ 2775 shibd shibd - -
in /etc/apache2/mods-available/shib.load
LoadModule mod_shib /etc/shibboleth/lib/shibboleth/mod_shib_24.so
a2enmod shib