0
Successful program execution.
Openconnect server password utility
ocpasswd [--option-name
[=value]]
[´username´]
This program is openconnect password (ocpasswd) utility. It allows the generation and handling of a ´plain´ password file used by ocserv.
-c, --passwd=FILE:
Specify the password file to use. Only useful when not using the default location.
Specify the user´s group name. Note that groups of one character such as ´*´ and ´x´, are ignored.
Deletes the specified user from the password file.
Prevents the specified user from logging in by locking its password.
Re-enables login for the specified user by unlocking its password.
Display usage information and exit.
Output version of program and exit.
0
Successful program execution.
1
The operation failed or the command syntax was not valid.
The password format of ocpasswd is as follows.
username:groupname:encoded-password
The crypt(3) encoding is used for the encoded-password.
$ ocpasswd -c ocpasswd my_username
$ ocpasswd -c ocpasswd -l my_username
$ ocpasswd -c ocpasswd -u my_username
5 releases since Debian 9 (Stretch); the text changed 4 times.
-! until Debian 9 (Stretch);
--delete until Debian 9 (Stretch);
--groupname until Debian 9 (Stretch);
--help until Debian 9 (Stretch);
--lock until Debian 9 (Stretch);
--more-help until Debian 9 (Stretch);
--unlock until Debian 9 (Stretch);
--version until Debian 9 (Stretch);
-d until Debian 9 (Stretch);
-g until Debian 9 (Stretch);
-h until Debian 9 (Stretch);
-l until Debian 9 (Stretch);
-u until Debian 9 (Stretch);
-v until Debian 9 (Stretch).