Repository navigation
Releases
LogByMail 1.2.1
LogByMail 1.2.1
Sign in to GLPI with your email address as well as with your login, with a built-in brute-force protection.
This maintenance release contains no functional change: it hardens the continuous integration, cleans the release archives and completes the documentation.
🔐 Supply chain
- The GLPI reusable CI workflows are pinned to a full commit SHA instead of a moving branch.
- Dependabot proposes their updates every week.
📦 Packaging
- Release archives no longer contain the development files (tests, CI, documentation assets, tool configurations).
- Plugin information points to the GitHub repository: homepage, downloads, issues and README, shown in Setup > Plugins.
📖 Documentation
- Screenshot of the configuration page.
- New Update section; console commands run as the web server user, as recommended by GLPI.
- Location of
logbymail.log: the GLPI log directory (files/_log/by default). - Files kept after an uninstall (log file, cache counters).
- Scope of the brute-force protection: the web login form. The REST and high-level APIs have their own sign-in endpoints, and GLPI already rate limits the two-factor authentication codes.
⬆️ Upgrading from 1.2.0
- Replace the
plugins/logbymailfolder. - In Setup > Plugins, click Update — settings and users lists are kept.
- Clear the cache:
sudo -u www-data php bin/console cache:clear.
📦 Requirements
| GLPI | 11.x and 12.x (tested on 11.0.12 and 12.0.1) |
| PHP | 8.2 to 8.5 (8.3 minimum with GLPI 12) |
| Languages | English, French |
Full changelog: 1.2.0...1.2.1
LogByMail 1.2.0
LogByMail 1.2.0
Sign in to GLPI with your email address as well as with your login — now with a built-in brute-force protection and an automated test suite running on GLPI 11 and 12.
✨ Highlights
🔒 Brute-force protection (new)
GLPI does not limit password attempts on its login form. LogByMail now protects every web sign-in, with a login or an email address (an email counts on the account it belongs to, so alternating both changes nothing).
- Per account and per IP address: 5 failures within 15 minutes lock the account for 15 minutes from this IP only — nobody can lock a colleague out from another computer.
- Per IP address: 30 failures within 15 minutes on any accounts lock the IP (password spraying). Set to
0to disable. - Locked attempts are refused before any password check, with the GLPI error page, HTTP status
429and aRetry-Afterheader (fail2ban friendly). - A successful sign-in resets the account counter; two-factor authentication keeps working as before.
- All thresholds are configurable in Setup > Plugins > LogByMail. Counters live in the GLPI cache.
- New log results:
lockedandblocked.
⚡ Performance
The plugin settings are now only read for sign-ins and for the login page: the REST API, inventory agents, CalDAV and other anonymous requests no longer trigger any database query.
🌐 Reverse proxies
The client IP follows the GLPI 12 trusted reverse proxies (GLPI_TRUSTED_REVERSE_PROXIES).
✅ Continuous integration on GLPI 11 and 12
Every commit is now tested on 4 environments (GLPI 11 and 12, PHP 8.2 / 8.3 / 8.5, MySQL and MariaDB) with the official GLPI plugin CI:
- static analysis: PHPStan (max level) against the GLPI source code, Psalm with taint analysis;
- code style and quality: PHP-CS-Fixer, Rector, TwigCS, licence headers;
- 46 PHPUnit tests, including integration tests running inside GLPI on its test database: email resolution rules, sign-in through GLPI's own authentication, login form handling, log, brute-force protection with the GLPI cache, hooks, settings update and uninstall;
- install, activation and clean uninstall of the plugin.
🔧 Other changes
- Installation: the plugin folder can stay owned by
root— the web server only reads it. - Line endings normalized to LF in the repository (
.gitattributes). - Stricter typing of database rows and cache entries.
⬆️ Upgrading from 1.1.x
- Replace the
plugins/logbymailfolder. - In Setup > Plugins, click Update — existing settings and users lists are kept, new settings get their default values.
- Clear the cache:
php bin/console cache:clear.
⚠️ The brute-force protection is enabled by default. Behind a reverse proxy, declare it inGLPI_TRUSTED_REVERSE_PROXIES(GLPI 12), otherwise all users share the proxy IP: in that case set the per-IP limit to0.
📦 Requirements
| GLPI | 11.x and 12.x (tested on 11.0.12 and 12.0.1) |
| PHP | 8.2 to 8.5 (8.3 minimum with GLPI 12) |
| Languages | English, French |
🚀 Fresh install
cd /path/to/glpi/plugins
# extract the release archive here: plugins/logbymail
php bin/console plugin:install logbymail -u glpi
php bin/console plugin:activate logbymailFull changelog: 1.1.0...1.2.0
1.1.0
Update to 1.1.0
Added
- Implemented included and excluded users lists for email sign-in.
- Added validation and housekeeping for user lists.
- Introduced error handling for unreadable user lists, disabling email sign-in if necessary.
- Updated configuration page to manage included and excluded users with appropriate UI elements.
- Enhanced logging for user exclusion scenarios.
Changed
- Updated changelog to reflect new features and changes.
- Modified README and XML files to indicate the new version.
- Adjusted various source files to accommodate the new user list functionality.
1.0.1
- French translation (fr_FR): the plugin follows the language of the GLPI user.
1.0.0
- Sign-in with an email address as well as with the login, on the GLPI web login form.
- Addresses shared by several users and duplicated logins are refused.
- Two-factor authentication support (TOTP, mandatory enrollment, backup codes).
- Settings: default address only, LDAP-synchronized addresses only, allowed domains, login page label, log.
- Configuration page with the list of shared addresses.
- Log file
files/_log/logbymail.log. - GLPI 11.x and 12.x compatibility (tested on 11.0.12 and 12.0.1), PHP 8.2 minimum.
- English strings and a translation template.
