1.6.1. Introduction#

Starting with LinOTP version 2.3 also policies for users and administrators are supported. There are two different policy types. The first policy type is for users connecting to the Selfservice Portal. This way it is possible to define, which user from which realm is allowed to perform which action within the Selfservice Portal. The other policy type is for administrators managing the tokens. This way it is possible to define, that an administrator is only allowed to manage tokens within a certain realm. A policy consists of the values:


If you want to turn off a certain policy, you do not need to delete the policy but you can mark the policy inactive.

Policy name

This is the name, just to identify the policy.


This is the scope, for which the policy is defined. Valid scopes are selfservice, admin, system and enrollment etc.


This is the action, which means, if this policy is valid for a certain user, the user will be allowed to do this. Several comma separated actions may be entered here. Actions that can contain lists will use spaces to separate list items. Action values can be put in quotes to allow commas and whitespaces inside.


This is the username, for whom this policy will be valid. Several comma separated username may be entered here. For more information see Users in policies.


This is the realm, for which the policy is defined.


The client IP or subnet for which this policy is defined. For more information see Clients in policies.


The time format is following the crontab time format with several white space seperated fields.

* 6-18 * * 1-5 *

* * * * * *
| | | | | |
| | | | | +-- Year              (range: 1900-3000)
| | | | +---- Day of the Week   (range: 1-7, 1 standing for Monday)
| | | +------ Month of the Year (range: 1-12)
| | +-------- Day of the Month  (range: 1-31)
| +---------- Hour              (range: 0-23)
+------------ Minute            (range: 0-59)

Remark: time conditions are separated by ';' as the ',' is part of
        the cron expression