Defining Security Modules

3.7.1. Defining Security Modules#

You can define several different security modules. At the moment LinOTP comes with the modules


which is defined in the python module


which is defined in the python module

But this can easily enhanced to write your own security module.

To define modules you follow this scheme in the /etc/linotp2/linotp.ini file:

linotpSecurity.some_name_1.module =
linotpSecurity.some_name_2.module =
linotpSecurity.some_name_3.module =
linotpSecurity.some_name_4.module =

You then define, which security module should be used by LinOTP. This is also done in the linotp.ini file:

linotpActiveSecurityModule = some_name_2


If you define nothing in the linotp.ini LinOTP uses the default security module and will work as usual.