Skip to main content

GLPI (external or internal)

GLPI can use an LDAP directory or an OpenID Connect (OIDC) identity provider to authenticate users.

GLPI installed by Medulla:
When GLPI is installed by Medulla, no additional configuration is required. Medulla automatically installs GLPI and configures authentication with the platform’s identity service (LDAP, Active Directory, or OIDC, depending on Medulla’s configuration). In this case, it is recommended that you do not modify this configuration unless instructed to do so by Medulla support.

What is the purpose of this documentation?
This documentation is primarily intended for administrators using a GLPI instance external to Medulla, or who wish to troubleshoot an authentication issue on an already installed GLPI instance. It explains how to configure or verify LDAP, Active Directory, or OpenID Connect authentication directly within GLPI.

GLPI allows you to use an LDAP directory to authenticate platform users.

The LDAP server used can be:

  • Microsoft Active Directory;
  • OpenLDAP;
  • the LDAP directory provided by Medulla;
  • any other LDAP v3-compatible server.

Using an LDAP directory allows you to centralize user authentication, avoid creating local accounts, and simplify the administration of access to GLPI.

Note:
This documentation applies to both a standalone GLPI server and GLPI integrated into Medulla.


How LDAP authentication works

When a user logs in to GLPI, the following process takes place:

  1. The user enters their username and password.
  2. GLPI queries the configured LDAP server.
  3. The LDAP server verifies the credentials.
  4. If authentication is successful, GLPI authorizes the login.
  5. Upon the first login, the user account may be created automatically in GLPI, depending on the selected configuration.

Prerequisites

Before configuring LDAP authentication, verify the following:

  • the LDAP server is accessible;
  • the LDAP or LDAPS protocol is allowed;
  • the BaseDN is known;
  • the bind account (Bind DN) has read permissions;
  • the certificates are valid if LDAPS is used.

Required information

Parameter Description
LDAP server IP address or DNS name of the LDAP server
Port 389 (LDAP) or 636 (LDAPS)
BaseDN Starting point for LDAP searches
Bind DN Account used by GLPI to query the directory
Password Password for the Bind account
User attribute Typically sAMAccountName or uid

Configure the LDAP server in GLPI

From the GLPI administration interface, create or edit an LDAP server.

Enter:

  • the LDAP server address;
  • the port;
  • the BaseDN;
  • the Bind account;
  • the associated password;
  • the attribute used to identify users.

Then save the configuration.


Special case: GLPI integrated into Medulla

When GLPI is installed via Medulla, the LDAP server is configured automatically.

If a problem occurs, verify that the server being used is indeed LocalLDAP.

The BaseDN setting must match the one used by Medulla.

You can verify this with the following command:

crudini --get /etc/mmc/plugins/base.ini.local ldap baseDN

The returned value must be identical to the one configured in GLPI’s LocalLDAP server.


Troubleshooting

Unable to log in

Check the following:

  • the LDAP server is reachable;
  • the port is open;
  • the BaseDN is correct;
  • the Bind account is valid;
  • the Bind account password is correct;
  • the user exists in the directory.

No user found

Check:

  • the BaseDN;
  • the LDAP filter used;
  • the identification attribute (sAMAccountName, uid...).

LDAPS connection denied

Check:

  • the certificate presented by the server;
  • the certificate chain;
  • the DNS resolution for the LDAP server.

GLPI integrated into Medulla is no longer working

Verify that:

  • the LocalLDAP server is still selected;
  • the BaseDN matches that of Medulla;
  • the Medulla LDAP service is functioning correctly.

Best practices

  • use LDAPS whenever possible;
  • create a dedicated read-only Bind account;
  • limit searches to a specific BaseDN;
  • test the LDAP connection regularly;
  • maintain the original configuration of the LocalLDAP server when using GLPI integrated into Medulla.

Summary

Item Description
Authentication LDAP / Active Directory
Supported servers Active Directory, OpenLDAP, LDAP Medulla
Ports 389 (LDAP) / 636 (LDAPS)
Main setting BaseDN
Bind account Bind DN
GLPI integrated into Medulla Automatically uses LocalLDAP

Best practice:
For GLPI integrated into Medulla, it is recommended to keep the automatically created LDAP configuration. If you encounter authentication issues, checking the LocalLDAP server and the BaseDN usually resolves most incidents.