|Issue||This article provides an explanation of how token seed files relate to when tokens go into next tokencode mode|
Customer does not know why his token is going into next tokencode mode.
Next token mode occurs for the following reasons:
- The first time the token is used for authentication may require a resynchronzation
- The user has entered too many incorrect passcodes.
- The token presented to the Authentication Manager server is outside of the automatic acceptance range (typically this would be the currently expected tokencode, one previous tokencode and the next tokencode).
- The server cannot determine the tokencode, because a node secret does not exist between a multihomed or NATed agent, or there is a mismatched RADIUS shared secret.
Note that this can be caused by a delay between when the passcode was actually entered by the user and when the passcode was actually received by the Authentication Manager server. For example,
- A user may be entering the passcode on a VPN client installed on their PC.
- The VPN client then communicates with a firewall.
- The firewall actually makes the authentication request on behalf of the user to the Authentication Manager server.
At any of these stages, there can be a delay, so in order to explain why a token went into next tokencode mode we need the following times:
The small, medium and large windows are defined in the token seed XML file. These values can not be modified by the user and attempting to change them will cause the importing of the token file to fail.
- The time when the user actually entered the passcode into the VPN client, web page or agent and then pressed OK to send the passcode.
- An Authentication Activity report on the server which shows the timestamp of when the passcode was received by the server.
If you look at the token seed file header then you will see:
- The small window in seconds defines the range of codes that will be accepted with automatic acceptance
- The medium window in seconds defines the range of codes that will force the token into next tokencode mode
- The large window is used in the following cases:
- This is the first authentication attempt (after a server start);
- The server has been restarted since the last login;
- The token is in New PIN Mode (only set for native PIN token);
- The token is in Next Tokencode Mode AND the client is a single-transaction client;
- The token is in Next Tokencode ModeAND is processing a normal authentication packet;
- This is the first authentication attempt with this token (can only be true for null pin token); or
- The user has entered a large number of incorrect passcodes. To see the value of this setting, login to the Security Console and navigate to Authentication > Policies > Token Policies > Manage Existing. Select the correct policy and choose Edit. Under Incorrect Passcodes, the value will be set to allow an unlimited number of incorrect passcodes or to require next tokencode after a defined number of incorrect passcodes.
For a SID800 token, the windows are typically defined as:
This corresponds to:
- An automatic acceptance range of +/- 1 minute,
- A Next Tokencode mode range of [-3,-2 ] and [2,3]
- A large window of [-10, +10]
Software tokens also have these ranges defined, as in the examples below. The first will allow the software token to behave like a hardware token.
In the example, the ranges are greatly increased, to allow for the device with a software token having somewhat incorrect time.
|Resolution||To modify the window values,|
- First load the tokens into the Authentication Manager server.
- SSH to the primary server and login as the rsaadmin user.
- Navigate to /opt/rsa/am/utils.
- Run the rsa util store command, for example:
./rsautil store -a add_config auth_manager.authmethod.st_small_window <number in seconds> Global 501
./rsautil store -a config auth_manager.authmethod.st_small_window <number in seconds> Global 501
In the sample below, the small window value was changed from the default of 60 seconds to 120 seconds:
login as: rsaadmin
Using keyboard-interactive authentication.
Last login: Wed Jan 4 11:09:50 2017 from jumphost.vcloud.local
RSA Authentication Manager Installation Directory: /opt/rsa/am
rsaadmin@am82p:~> cd /opt/rsa/am/utils
rsaadmin@am82p:/opt/rsa/am/utils> ./rsautil store -a add_config auth_manager.authmethod.st_small_window 120 Global 501
Please enter OC Administrator username: <enter name of Operations Console administrator>
Please enter OC Administrator password: <enter password for the Operations Console administrator> psql.bin:/tmp/51e5e785-2ec3-4ed0-bd1f-20442fc0be901743519977922809669.sql:108: NOTICE: Added the new configuration parameter "auth_manager.authmethod.st_small_window" with the value "120"
To change the medium or large window, change the command accordingly.