A few examples on the most basic operations and interactions one might have with the IDP: checking log files, updating the software, generating simple stats, managing local (non-federation) SPs, etc.
Paths and file names below assume a default installation location (/opt/shibboleth-idp) and unchanged logging/logback configuration. Though you might prefer to adjust your logging config and or make /opt/shibboleth-idp/logs a symbolic link to another file system/volume. You might also want to remove the "idp-" prefix from all the {process,warn,audit,consent-audit} log files since they'll likely end up in one IDP-specific logging directory anyway (and having all files start with the same letter isn't overly useful). But again, the examples below can't match local deployment decisions and so have been written to match a default IDP installation's behaviour. So adjust as needed.
Who and how am I
$ /opt/shibboleth-idp/bin/version.sh 4.1.2
Optional (and will only work if you've installed the JSTL libraries as part of the IDP installation):
/opt/shibboleth-idp/bin/status.sh
Applying updates
See IDP 4 Updates.
What's happening right now
multitail -f /opt/shibboleth-idp/logs/idp-process.log /var/log/tomcat9/access.log
egrep 'WARN|ERROR' /opt/shibboleth-idp/logs/idp-process.log
journalctl -u tomcat9.service -ef
multitail -f /opt/shibboleth-idp/logs/idp-process.log /var/log/tomcat9/access.log -l 'journalctl -u tomcat9.service -f'
Who logged in and where, with what attributes sent
multitail -f /opt/shibboleth-idp/logs/idp-audit.log
fgrep '|someuser99|' /opt/shibboleth-idp/logs/idp-audit.log
/opt/shibboleth-idp/bin/aacli.sh --saml2 -n someuser99 -r https://test-sp.aco.net/shibboleth
zgrep ' failed$' /opt/shibboleth-idp/logs/idp-process.log.202008*
fgrep succeeded /opt/shibboleth-idp/logs/idp-process.log
fgrep 192.168.1.99 /opt/shibboleth-idp/logs/idp-audit.log /var/log/tomcat9/access.log
What data will go out for userid X to service Y
The aacli is a very useful tool to test what data the running IDP would be sending out for a given subject (replace SOME_USERID
below with the login name the subject would enter during authentication) to a given SP. Not only does that help verifying your attribute resolver and attribute filter configuration when you're making changes to either (or both), it can also be useful in debugging access problems someone experiences at a given SP as you can easily compare what data would go out for different subjects (e.g. in cases where access works vs. where it fails) without needing the subject's cooperation in this issue (or access to their password).
/opt/shibboleth-idp/bin/aacli.sh --saml2 -n SOME_USERID -r https://test-sp.aco.net/shibboleth
Statistics
ACOnet has contributed a log analysis tool for parsing the Shibboleth IDP's audit logs. For the current day use /opt/shibboleth-idp/logs/idp-audit.log
.
loganalysis.py -culn /opt/shibboleth-idp/logs/idp-audit.log.20190123.gz 2 unique relying parties 10 unique userids 25 logins logins | relyingPartyId ------------------------- 14 | https://sp.example.org/saml 11 | https://wiki.example.edu/shibboleth
loganalysis.py -cul /opt/shibboleth-idp/logs/idp-audit.log.201812* 21 unique relying parties 15 unique userids 406 logins
Debugging
$EDITOR /opt/shibboleth-idp/conf/logback.xml # Set <logger name="PROTOCOL_MESSAGE" level="DEBUG"/> and save /opt/shibboleth-idp/bin/reload-service.sh -id shibboleth.LoggingService
Make sure to undo this after you're done to avoid filling up file systems/volumes/disks with unnecessary DEBUG messages.
Locally managed Service Provider Metadata (non-eduID.at)
See our IDP 4 Metadata configuration documentation.