logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ocpasswd - OpenConnect server password utility

Authors

       Written by Nikos Mavrogiannopoulos. Many people have contributed to it.

Description

       This  program  is  openconnect  password  (ocpasswd)  utility. It allows the generation and handling of a
       ´plain´ password file used by ocserv.

Examples

Addingauser
       $ ocpasswd -c ocpasswd my_username

   Lockingauser
       $ ocpasswd -c ocpasswd -l my_username

   Unlockingauser
       $ ocpasswd -c ocpasswd -u my_username

Exit Status

0      Successful program execution.

       1      The operation failed or the command syntax was not valid.

Files

       The password format of ocpasswd is as follows.

           username:groupname:encoded-password

       The crypt(3) encoding is used for the encoded-password.

Name

ocpasswd - OpenConnect server password utility

Options

-c,--passwd=FILE:
              Specify the password file to use. Only useful when not using the default location.

       -g,--group:
              Specify the user´s group name. Note that groups of one character such as ´*´ and ´x´, are ignored.

       -d,--delete:
              Deletes the specified user from the password file.

       -l,--lock:
              Prevents the specified user from logging in by locking its password.

       -u,--unlock:
              Re-enables login for the specified user by unlocking its password.

       -h,--help:
              Display usage information and exit.

       -v,--version:
              Output version of program and exit.

Reporting Bugs

       Issue tracker: https://gitlab.com/openconnect/ocserv/-/issues

See Also

ocserv(8), occtl(8)

                                                   April 2024                                        OCPASSWD(8)

Synopsis

ocpasswd [--option-name[=value]] [´username´]

See Also