Skip to content

Commit

Permalink
Document that auth-user-pass may be inlined
Browse files Browse the repository at this point in the history
Commits 7d48d31, 39619b7 added support for inlining username
and, optionally, password.
Add a description of its usage in the man page.

Github: resolves #370

Change-Id: I7a1765661f7676eeba8016024080fd1026220ced
Signed-off-by: Selva Nair <[email protected]>
Acked-by: Antonio Quartulli <[email protected]>
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg28284.html
Signed-off-by: Gert Doering <[email protected]>
  • Loading branch information
selvanair authored and cron2 committed Feb 23, 2024
1 parent 5447571 commit fad2d70
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions doc/man-sections/client-options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,17 @@ configuration.
If ``up`` is omitted, username/password will be prompted from the
console.

This option can also be inlined
::

<auth-user-pass>
username
[password]
</auth-user-pass>

where password is optional, and will be prompted from the console if
missing.

The server configuration must specify an ``--auth-user-pass-verify``
script to verify the username/password provided by the client.

Expand Down
2 changes: 1 addition & 1 deletion doc/man-sections/inline-files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ OpenVPN allows including files in the main configuration for the ``--ca``,
``--cert``, ``--dh``, ``--extra-certs``, ``--key``, ``--pkcs12``,
``--crl-verify``, ``--http-proxy-user-pass``, ``--tls-auth``,
``--auth-gen-token-secret``, ``--peer-fingerprint``, ``--tls-crypt``,
``--tls-crypt-v2`` and ``--verify-hash`` options.
``--tls-crypt-v2``, ``--verify-hash`` and ``--auth-user-pass`` options.

Each inline file started by the line ``<option>`` and ended by the line
``</option>``
Expand Down

0 comments on commit fad2d70

Please sign in to comment.