5.3. System Config¶
The system configuration has two logical topics: Settings and token default settings.
The system config¶
5.3.1. Settings¶
5.3.1.1. Use @ sign to split the username and the realm.¶
This option defines if the username like user@company given during authentication should be split into the loginname user and the realm name company. In most cases this is the desired behavior so this is enabled by default.
A name like user@gmail.com is only split if a realm gmail.com exists (see Relate User to a Realm). So you probably only want to disable splitting if users log in with email addresses whose domain is also the name of a realm.
How a user is related to a realm is described here: Relate User to a Realm
This option also affects the login via the Authentication endpoints
5.3.1.2. Increase the failcounter if the wrong PIN was entered.¶
If during authentication the given PIN matches a token but the OTP value is wrong, the failcounter of the tokens for which the PIN matches, is increased. This option is enabled by default: if the given PIN does not match any token, the failcounter of every token of the user that can still be used (active, not revoked, below its maximum failcount, within its validity period) is increased by one. So a series of requests with wrong PINs for a user name can lock all tokens of that user. If the option is disabled, a wrong PIN does not increase any failcounter.
5.3.1.3. Clear failcounter after minutes¶
When the failcounter reaches the maximum, the token gets a timestamp of the time the max fail count was reached. After the specified number of minutes has passed since that timestamp, any authentication attempt will clear the fail counter.
A 0 means that the automatic clearing of the fail counter is not used.
Note
After the maximum failcounter is reached, new requests will not update the mentioned timestamp.
5.3.1.4. Do not use an authentication counter per token.¶
Usually privacyIDEA keeps track of how often a token is used for authentication and how often this authentication was successful. This is a per token counter. This information is written to the token database as a parameter of each token.
This setting means that privacyIDEA does not track this information at all.
Without the counter, the maximum number of authentications set for a token
(count_auth_max, count_auth_success_max) is not enforced.
5.3.1.5. Prepend the PIN in front of the OTP value.¶
Defines if the OTP PIN should be given in front (pin123456)
or in the back (123456pin) of the OTP value.
5.3.1.6. Automatic resync during authentication¶
Automatic resync defines if the system should try to resync a token if a user provides a wrong OTP value. AutoResync works like this:
If the counter of a wrong OTP value is within the resync window, the system remembers the counter of the OTP value for this token in the token info field
otp1c.Now the user needs to authenticate a second time within the time-interval given in Auto resync timeout with the next successive OTP value.
The system checks if the counter of the second OTP value is the successive value to
otp1c.If it is, the token counter is set and the user is successfully authenticated.
Note
AutoResync works for all HOTP and TOTP based tokens including SMS and Email tokens. For TOTP tokens, the second OTP value must belong to the time step directly after the remembered one. privacyIDEA uses at least three time steps as Auto resync timeout for TOTP tokens. The token shows each value for one time step, so the user needs up to two time steps to read both values. The third time step leaves time for the requests. Day password tokens are not resynchronized automatically.
5.3.1.7. User Cache expiration in seconds¶
This setting is used to enable the user cache and
configure its expiration timeout. If its value is set to 0 (which is the default value),
the user cache is disabled.
Otherwise, the value determines the time in seconds after which entries of the user
cache expire. For more information read User Cache.
Note
If the user cache is already enabled and you increase the expiration timeout, expired entries that still exist in the user cache could be considered active again!
5.3.1.9. SMTP server for password recovery¶
Specify the SMTP server configuration which should be used for sending password recovery emails.
5.3.2. Token default settings¶
Note
The following settings are token specific values which are set during enrollment. Some of these values can be overridden by policies or events during rollout.
5.3.2.1. OTP length of newly enrolled tokens¶
This is the default length of the OTP value of OATH-based tokens like SMS,
Email, TOTP and HOTP. It is used when the enrollment request contains no OTP
length, e.g. an API request without otplen. The current WebUI presets the
OTP length in its HOTP and TOTP enrollment forms with this value; the previous
WebUI sends 6 for every token type. An hotp_otplen or totp_otplen
policy replaces the sent value on the server.
5.3.2.2. Count Window of newly enrolled tokens¶
This setting defines how many OTP values will be calculated during
an authentication request to check for a match. This applies to counter-based
tokens (HOTP, Email, SMS). TOTP tokens use their time window instead, which a new
TOTP token gets from the TOTP token configuration (totp.timeWindow, default
180 seconds).
5.3.2.3. Max Failcount of newly enrolled tokens¶
This setting defines the maximum failcounter for newly enrolled tokens. When the failcounter reaches this number, the token cannot be used until the failcounter is reset (by an administrator, or automatically, see Clear failcounter after minutes).
Note
In fact the failcounter will only increase up to this maximum failcount (Maxfail).
Even if more failed authentication requests occur, the failcounter will
not be increased.
5.3.2.4. Sync Window of newly enrolled tokens¶
This setting defines the synchronization window for newly enrolled tokens. The window defines how many OTP values will be calculated during a resync of the token.
Note
In case of HOTP token, this is the amount of steps that will be calculated from the current token counter onwards. For TOTP token, the number of steps will be multiplied with the timestep of the token and this interval will be checked before and after the current time.
5.3.2.5. The challenge validity time¶
This setting defines the timeout for a challenge response authentication. If the response is received after the given time interval, the response is not accepted anymore.
A token type can have its own value in the config key
<Type>ChallengeValidityTime, e.g. HotpChallengeValidityTime,
TiqrChallengeValidityTime, PushChallengeValidityTime (see
Push Token) or WebauthnChallengeValidityTime (see
WebAuthn Token Config); this setting is used for types without their own
value. Email and SMS tokens do not use it: their challenges are valid for the
OTP validity time of their token configuration (default 120 seconds for
Email, 300 seconds for SMS), see Email Token Configuration and
SMS Token Configuration.
To clean up expired challenges read the Clean up challenges section.