How to control OTP from the command line
OverviewThe command line tool "VISULOX otp" allows to control the access via One Time Password. |
Usage
The following subcommands are available:
| Command | Description |
|---|---|
| key | Create a One Time Password key |
| set | Assign the key to users. Validate with current OTP token (-otp). |
| reset | Reset One Time Password of the user |
| check | Check OTP Config of user and check OTP token |
One Time Password elements
| Element | Description |
|---|---|
| -object <> | One Time Password user |
| -key | Creates a One Time Password key |
| -otp <> | The current token for the One Time Password key |
| -grant <> | Username. Default is <CLI> |
With these commands and elements it is possible to create user OTP profiles with the same key for different users. For example if a group of users have the same OTP device / webpage.
Examples
Create OTP key
CODE
visulox otp key
44I6ZJ25DMWD2GIO
Assign the key to a user
CODE
visulox otp set -object <user> -key <otp key> -otp <current otp token>
Check if user has an OTP and if the OTP token is correct
CODE
visulox otp check -object <user> -otp <current otp token>
Reset OTP of a user
CODE
visulox otp reset -object <user>