14. Tools

LinOTP comes with some tools to ease system maintenance.

14.1. linotp-sql-janitor

The linotp-sql-janitor is part of the linotp-ee package. It will delete old entries in the SQL Audit log table. It can take a high and a low watermark. If the number of entries exceed the high watermark, old entries are deleted, so that only the <low watermark> newest entries remain.

This tool by default is run via cron once a day.

You can specify the watermarks using the command line (–high, –low), or entries in linotp.ini (linotpAudit.sql.highwatermark, linotpAudit.sql.lowwatermark). The default is set to high=10000 and low=5000.

14.2. linotp-tokens-used

The linotp-tokens-used is part of linotp-ee package. This in fact is a munin [1] plugin to monitor the total amount of managed tokens, the number of unassigned tokens and the number of inactive tokens.

Of course the output can be used to be dumped to any other file.

The output can be used to set up a dynamic pay per use licensing model.

14.3. linotp-backup

The linotp-backup is part of linotp-ee package. This shell script backs up the database and the encryption key to an PGP encrypted backup file.

14.4. linotp-restore

The linotp-restore is part of linotp-ee package. This shell script restores a previously backed up database and encryption key.

14.5. linotp-convert-token.pl

The linotp-convert-token is part of linotp-ee package. This script converts a Safeword dat seed file to an Aladdin/SafeNet XML file.

14.6. linotp-decrypt-otpkey

The linotp-decrypt-otpkey is part of linotp-ee package. This script can be used for debug purposes. It helps to decrypt an OTP seed from the token database.

14.7. LinotpLDAPProxy.pm

The LinotpLDAPProxy.pm is part of linotp-ee package. This is a perl module to be used with an OpenLDAP server to setup an LDAP proxy, to perform LDAP binds (authentication) with OTP values.

[1]http://munin-monitoring.org