For the complete documentation index, see llms.txt. This page is also available as Markdown.

Other external authentication methods

The integration of GLPI and authentication sources beyond internal, LDAP, and IMAP is configured from the Setup > Authentication > Other authentication methods menu.

Central Authentication Service (CAS)

The configuration of a CAS server is comprised on the address of the server and its port (default 443). A base directory can be specified if needed. The return web address parameter allows you to redirect the user to a specific page after they log out from GLPI.

Once the CAS authentication is activated, each authentication is automatically redirected to the CAS server. In order to log into an internal account or one authenticated through a different method, you have to add ?noAUTO=1 to the login URL.

The php-curl or php-dom extensions are required to be enabled for CAS authentication to function.

x509 certificate

The Email attribute for x509 authentication tells GLPI to look at the value of this attribute in the SSL_CLIENT_S_DN HTTP request variable passed by the authentication system.

It is possible to restrict the accepted values for the O, OR, and CN fields of the client certificate. In order to specify multiple values for each field, you may separate each value with the $ symbol.

Other automatic authentications

GLPI can rely on other external systems to authenticate users such as:

  • Basic Apache authentication

  • Windows domain authentication

  • Authentication coming from an authentication server like LemonLDAP::NG, Shibboleth, etc.

When the user wishes to reach GLPI, GLPI checks the presence of a server variable storing the login/username. If the variable is present, the authentication is allowed to be done. We can map the data transmitted by the authentication system with the fields of the user account of GLPI (name, first name, email, language...). To finish, the controls of authorizations are carried out. An option allows to remove the domain of the user's login (Ex: testuser@example.com > testuser).

The list of possible variable names is configurable, although the most common ones are already provided by GLPI. See Configuring headings.

SSO authentication in GLPI via a web server

In a Single Sign-On (SSO) architecture via the web server, it is not GLPI that performs the identity verification, but the upstream web server.

Example: if you use Windows authentication (Kerberos/NTLM) with Apache and the mod_auth_gssapi module, Apache communicates directly with the Active Directory domain controller.

Once the user is authenticated (for example, "John Smith"), Apache transmits this information to GLPI through a server variable. GLPI then simply retrieves the user ID without managing the authentication itself.

Authentication variables used by GLPI

GLPI retrieves the user ID from variables set locally by the web server after a successful authentication. Here are the supported ones:

1. REMOTE_USER

  • Origin: industry standard (Apache, IIS, Nginx).

  • Description: the most widely used and secure variable for SSO. It is populated by the web server after successful authentication (Kerberos, NTLM or LDAP).

  • Recommendation: for integrated Windows authentication, always use REMOTE_USER.

2. REDIRECT_REMOTE_USER

  • Origin: Apache server with mod_rewrite.

  • Description: technical fallback variable. During an internal redirect via .htaccess, Apache may prefix REMOTE_USER with REDIRECT_.

  • Use case: if authentication works on the homepage but not on some subpages, use this variable.

3. USERNAME

  • Origin: system environment (mostly Windows/IIS).

  • Description: this variable comes from the environment of the process running PHP. It is only relevant when the web server passes the authenticated user's session to the PHP process.

Last updated