purgePersistentSessions.1p - Man Page

Remove persistent sessions that match a certain filter

Synopsis

  purgePersistentSessions [options] [filters]

Description

LemonLDAP::NG stores user information in an object called a persistent session. While it is not required to purge them, on larger installations with high user turnover, persistent sessions may end up accumulating and purging them might make sense. This script lets you automatically remove persistent sessions that match one or several filters.

Options

General Options

--help,  -h

Print a brief help message and exit.

--debug,  -d

Print additional diagnostics to STDERR

--json,  -j

Log execution stats as JSON instead of human-readable text

--audit, -j

Emit an audit log for each removed persistent session

Filters

Filters are ways to select which persistent sessions you want to remove. You need to specify at least one filter. If you don't, nothing will be removed.

Multiple filters may be specified, when this is the case, ALL filters must match in order for a persistent session to be deleted.

--creation=SECONDS

The persistent session will be deleted if it was created more than SECONDS ago

--last-update=SECONDS

The persistent session will be deleted if it was last updated more than SECONDS ago

--recent-login=SECONDS

The persistent session will be deleted if the login history's most recent successful login happened more than SECONDS ago.

If there are no successful logins at all, the persistent session will also be deleted.

--no-login-success

The persistent session will be deleted if its login history does not contain any successful logins.

This is useful to remove persistent sessions created when a user inputs an non-existing username in the login form.

--no-registered-2fa

The persistent session will be deleted if the user has not registered a second factor device.

See Also

<http://lemonldap-ng.org/>

Authors

Maxime Besson, <maxime.besson@worteks.com>

Bug Report

Use OW2 system to report bug or ask for features: <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues>

Download

Lemonldap::NG is available at <https://lemonldap-ng.org/download>

Info

2025-10-17 perl v5.42.0 User Contributed Perl Documentation