Skip to main content

GLPI (ITSM)

Self-hosted GLPI (12.0.2, GPLv3) — open-source IT asset & service management tool (helpdesk tickets, inventory, etc.).

Guestsrv-glpi — Rocky Linux 9, VM 125 on rumba, 192.168.88.34, 1024 MB RAM, 30G (local-lvm, scsi0)
URL (people)https://glpi.isc3.isc-vs.ch/ — over NetBird (staff), certificate from the ISC3 private web CA
URL (machines)https://srv-glpi.isc3.isc-vs.ch/ — AWX and the API (apirest.php), FreeIPA certificate
SourceRelease archive glpi-12.0.2.tgz (from GLPI GitHub releases), extracted to /var/www/glpi; web root is the public/ subfolder
Version12.0.2 (updated November 2026)
StackApache (httpd) + PHP 8.3 (Remi module, php-8.3.37 in December 2026) + MariaDB 10.11
DatabaseMariaDB, database glpi, user glpi@localhost
AuthFreeIPA LDAP (password), no Keycloak/SSO — see Access
Time zoneEurope/Zurich since 2026-12-01, UTC before — see Time zone
Open itemsops todo → GLPI
Two names, two certificates (since 2026-11-18)

glpi.isc3.isc-vs.ch is the name people use: keep this CNAME in DNS, it is the only name on the private-CA certificate. srv-glpi.isc3.isc-vs.ch (canonical) keeps the FreeIPA certificate, which AWX trusts. Each name has its own vhost; do not put glpi.isc3.isc-vs.ch back as a ServerAlias in glpi.conf, or people would get the FreeIPA certificate and a browser warning.

Access​

People log in with their FreeIPA login and password (LDAP server FreeIPA ISC, id 1). Edu-ID and the VPN play no part in the GLPI login itself. The profile comes from the FreeIPA group, through GLPI authorization rules:

FreeIPA groupGLPI profileRule
app-isc3-prod-glpi-selfserviceSelf-Service92
app-isc3-prod-glpi-technicianTechnician (+ Self-Service)95
app-isc3-prod-glpi-adminAdmin96

All three sit in access-isc3-prod-glpi. None of them gives SSH or sudo on any host.

Give someone Technician access:

  1. ipa group-add-member app-isc3-prod-glpi-technician --users=<login>
  2. The account needs a FreeIPA password. If it has none, create it in Vaultwarden first (bw-create-login.ps1), then pipe it to ipa user-mod <login> --password — never on a command line. Set krbPasswordExpiration ahead, or the first LDAP bind fails on an expired password.
  3. Check the GLPI account type: many people already exist in GLPI as local accounts (created for tickets, authtype 1, no password). The group rule only runs for LDAP accounts, so switch it: in GLPI, Actions → Change the authentication method → LDAP FreeIPA ISC, or in SQL authtype=3, auths_id=1, user_dn='uid=<login>,cn=users,cn=accounts,dc=ipa,dc=isc-vs,dc=ch'.
  4. Sync and check: cd /var/www/glpi && sudo -u apache php bin/console ldap:synchronize_users --only-update-existing --ldap-server-id=1 --ldap-filter='(uid=<login>)' — the user then shows the Technician profile (dynamic).

Approvals — VM requests​

The native form Request a Virtual Machine creates a ticket and sends an approval request to the GLPI group vm-admin (id 11). This group is a local GLPI group, not a FreeIPA one: add and remove its members in GLPI (Administration > Groups > vm-admin > Users).

To approve, a person needs both:

  1. To be a member of vm-admin. A Super-Admin outside the group cannot approve.
  2. To use a profile that has Approve a request (Profiles > profile > Assistance > Approvals).
ProfileApprove a request / an incident
Self-Serviceno (on purpose; the ticket is not even visible there)
Technicianyes (since 2026-11-19)
Super-Adminyes

A member who has both Self-Service and Technician approves from the Technician view. To approve: open the ticket, go to the Approvals tab, click the waiting line and choose Approve.

If no member of the group can approve, the ticket stays in Waiting for approval and nobody sees anything wrong: check the group members and their profile first.

Storage layout​

GLPI's config/data/log directories are moved out of the webroot (FHS-style), so nothing sensitive is served publicly by Apache:

DirectivePathPurpose
GLPI_CONFIG_DIR/etc/glpiDB connection config, local_define.php
GLPI_VAR_DIR/var/lib/glpi/filesUploaded files, cache, sessions, etc.
GLPI_LOG_DIR/var/log/glpiApplication logs

Wired up via /var/www/glpi/inc/downstream.php (loads GLPI_CONFIG_DIR) and /etc/glpi/local_define.php (sets GLPI_VAR_DIR / GLPI_LOG_DIR). Ownership: apache:apache on all three; /etc/glpi is 750 during setup, tightened to 550 (root:apache) once installed, since GLPI only needs to read its config afterwards.

Mail​

Notifications go out through the rack's outbound relay rather than a direct credential:

SettingValue
Server addresssrv-mail.isc3 (192.168.88.163), port 25, no auth/TLS
Sender192.168.88.34 is in MYNETWORKS of provisioning/mail/deploy-relay.sh (2026-09-21), otherwise Client host rejected (Email)
SendingGLPI first puts each mail in its queue (glpi_queuednotifications). The automatic action queuednotification sends it, from the system cron, every 2 minutes (Operations)
RecipientsOnly the admins and the few people listed in EXTRA get through (how to add someone). Any other requester, and every …-w1@ipa.isc-vs.ch address, is refused by the relay: GLPI retries 6 times, then drops the mail
caution
queuednotification stays in run mode CLI

Setup > Automatic actions > queuednotification > Run mode: CLI. In mode GLPI it runs only when browsing GLPI triggers it: until 2026-12-01, mails waited days in the queue (incident).

Mails still waiting:

mysql glpi -e "select id, event, create_time, sent_try, recipient from glpi_queuednotifications where is_deleted=0"

Time zone​

GLPI runs in Europe/Zurich since 2026-12-01: date.timezone = Europe/Zurich in /etc/php.d/99-timezone.ini and public $use_timezones = true; in /etc/glpi/config_db.php (MariaDB time zone tables loaded, glpi@localhost may read mysql.time_zone_name).

Before that, PHP ran in UTC and GLPI stored and showed every date in UTC, one hour early in winter. The stored dates were moved to Zurich time on 2026-12-01, except the begin and end of reservations typed by hand (already local) and glpi_crontasks.lastrun / next_run. Mails sent before 2026-12-01 15:33 keep their UTC times. The dump taken just before, and the SQL that moved the dates, are in /root/backup-glpi-tz/ on srv-glpi.

Keep both settings

Without one of them, GLPI writes UTC again next to the Zurich dates.

Plugins and GLPI Network​

The plugin Marketplace (Setup > Plugins > Discover) only lists plugins once the instance carries a GLPI Network registration key. Ours is a free key (no time limit) entered under Setup > General > GLPI Network (November 2026).

GLPI Network accountservices.glpi-network.com, login rack-admins@isc-vs.ch
PasswordVaultwarden (srv-vw), entry glpi - key registration
Plugins on disk/var/www/glpi/marketplace/ (installed from the Marketplace)
PluginVersionStateUse
Order Management (order)2.12.12activePurchase orders: product references per supplier, orders charged to a GLPI budget, delivery that creates the asset records with their financial data. Menu Management > Orders; rights per profile in the profile's Orders tab
Formcreator End-of-Life Updater (formcreator)3.0.1installed, not activeOnly migrates Formcreator forms from GLPI 10. Not needed here: GLPI 11 has native forms (Administration > Forms). Can be uninstalled

Purchase requests are meant to go: native form → ticket with approval → Order Management order → delivery creates the assets.

# plugin state on srv-glpi (state 1 = active, 2 = installed, not active)
mysql -N -e "select directory,name,version,state from glpi_plugins" glpi

Operations​

  • Virtual hosts: /etc/httpd/conf.d/glpi.conf (srv-glpi.isc3.isc-vs.ch, certmonger request glpi-tls, glpi.crt/glpi.key) and zz-glpi-web.conf (glpi.isc3.isc-vs.ch, glpi-web.crt/glpi-web.key, private web CA, expires 2026-12-18, renewal in ISC3 private web CA). Same DocumentRoot /var/www/glpi/public (never the GLPI root itself), with mod_rewrite routing everything through index.php.
  • SELinux: enforcing; httpd_sys_rw_content_t applied to /etc/glpi, /var/lib/glpi, /var/log/glpi (all outside the default webroot label), httpd_sys_content_t on /var/www/glpi.
  • install/ directory: removed after setup (/var/www/glpi/install) — GLPI refuses to run normally while it's present, which forces this step.
  • Cron: front/cron.php every 2 minutes as apache (/var/spool/cron/apache):
    */2 * * * * /usr/bin/php /var/www/glpi/front/cron.php &>/dev/null
    It runs only the automatic actions in run mode CLI: 23 of 53 in December 2026, queuednotification among them. The 30 others are in mode GLPI and run only when someone browses GLPI (todo).
  • Database dump by hand: mysqldump --single-transaction glpi. With --routines it fails (Cannot load from mysql.proc, December 2026, todo).