By Daniel Berthereau Authenticate on Omeka S via Shibboleth single sign-on.

Shibboleth (module for Omeka S)

New versions of this module and support for Omeka S version 3.0 and above are available on GitLab, which seems to respect users and privacy better than the previous repository.

Shibboleth is a module for Omeka S that allows to use Shibboleth single sign-on services to authenticate users.


The module uses the php-extension php-ldap, so it must be installed on your server, generally a package named "php-ldap" in most common Linux distributions.

Furthermore, it uses composer too to manage a dependency. So use the release zip to install it, or use and init the source.

  • From the zip

Download the last release from the list of releases (the master does not contain the dependency), and uncompress it in the modules directory.

  • From the source and for development:

If the module was installed from the source, rename the name of the folder of the module to Shibboleth, and go to the root of the module, and run:

composer install --no-dev

Before enabling the module in admin interface, the config must be updated.

Then install it like any other Omeka module.

See general end user documentation for installing a module.


Copy the array shibboleth from the config of the module to the local config of Omeka (file config/local.config.php) and adapt it to your network config.

In particular, the attribute map may be modified to get the good username. The roles specified inside your Ldap must be mapped to the ones uses by Omeka too. Generally, just replace the xxx by the ones used in your ldap manager. The key identityVar may be updated to uid if the service doesn't provide the email. The only required value is the email.

You can add user settings too, for example the institution or keys for the module User Profile ('supannEtablissement' => 'userprofile_institution_id'). All keys starting with userprofile_ or in the specified list user_settings will be stored when the user will be created (no update later). Static settings can be appended too.

Before moving into production, check the security and check the rights of each role.

Don’t forget to enable Shibboleth in the param of the web server (Apache here), according to your own configuration:

# Location / should be first in order to manage specific settings for sub-paths.
<Location />
    AuthType shibboleth
    ShibRequireSession Off
    # ShibRequestSetting entityIDSelf
    Require shibboleth

# When using module Guest, you may add /s/my-site/guest like /admin.
<Location /admin>
    AuthType shibboleth
    ShibRequireSession On
    ShibUseHeaders On
    ShibRequestSetting requireSession 1
    # ShibRequestSetting entityIDSelf
    Require valid-user

<Location /Shibboleth.sso>
#   Order Deny,Allow
#   Allow from all
    SetHandler shib


Use it at your own risk.

It’s always recommended to backup your files and your databases and to check your archives regularly so you can roll back if needed.


See online issues on the module issues page on GitLab.



This module is published under the CeCILL v2.1 license, compatible with GNU/GPL and approved by FSF and OSI.

This software is governed by the CeCILL license under French law and abiding by the rules of distribution of free software. You can use, modify and/ or redistribute the software under the terms of the CeCILL license as circulated by CEA, CNRS and INRIA at the following URL "".

As a counterpart to the access to the source code and rights to copy, modify and redistribute granted by the license, users are provided only with a limited warranty and the software’s author, the holder of the economic rights, and the successive licensors have only limited liability.

In this respect, the user’s attention is drawn to the risks associated with loading, using, modifying and/or developing or reproducing the software by the user in light of its specific status of free software, that may mean that it is complicated to manipulate, and that also therefore means that it is reserved for developers and experienced professionals having in-depth computer knowledge. Users are therefore encouraged to load and test the software’s suitability as regards their requirements in conditions enabling the security of their systems and/or data to be ensured and, more generally, to use and operate it in the same conditions as regards security.

The fact that you are presently reading this means that you have had knowledge of the CeCILL license and that you accept its terms.


This module contains some parts from the library ZfcShib, published under BSD, and the library PEAR Net_LDAP2, published under LGPL v3.0.


  • Copyright Ivan Novakov, 2013 (see ZfcShib)
  • Copyright Vincent Pretet, 2016-2017 for Université Paris 1 - Panthéon-Sorbonne
  • Copyright Daniel Berthereau, 2019-2022 (see Daniel-KM)

First developed for the digital library Nubis of Université Paris 1 - Panthéon-Sorbonne and improved for the institutional repository of student works Dante of the Université de Toulouse Jean-Jaurès.

Version Released Minimum Omeka version 19, 2022 [info]^3.1.0