totpprov man page

totpprov — Simple provisioning script for totpcgi

Synopsis

totpprov [-c /path/to/provisioning.conf] command username

Description

This is a simple command-line provisioning script for totpcgi. It uses the backend information and default parameters data found in provisioning.conf to operate on user records.

Options

--version
show program's version number and exit
-h, --help
show this help message and exit
-c CONFIG_FILE, --config=CONFIG_FILE
Path to provisioning.conf (Default: /etc/totpcgi/provisioning.conf)

Commands

delete-user
deletes user record
delete-user-state
deletes any existing state information for user
delete-user-pincode
deletes pincode entry for user
delete-user-token
deletes the token issued to user
set-user-pincode
sets pincode for user
encrypt-user-token
encrypts existing token with the user's pincode
decrypt-user-token
decrypts existing encrypted token with the user's pincode
generate-user-token
generates a new token for user
provision-user
provisions a new user

Examples

To provision a user:

totpprov provision-user bobafett

To delete a user:

totpprov delete-user bobafett

To delete a token:

totpprov delete-user-token bobafett

To set/change user pincode:

totpprov set-user-pincode bobafett

To generate a new google-authenticator token for user:

totpprov generate-user-token bobafett

Author

konstantin@linuxfoundation.org

License: GPLv2+

Info

2013-09-20 0.5.5