Skip to content

Commit

Permalink
proxy-options.rst: Add proper documentation for --http-proxy-user-pass
Browse files Browse the repository at this point in the history
And extend examples section for authenticated HTTP proxies because
is was misleading.

Change-Id: I7a754d0b4a76a9227bf922f65176cd9ec4d7670c
Signed-off-by: Frank Lichtenheld <[email protected]>
Acked-by: Gert Doering <[email protected]>
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg28083.html
Signed-off-by: Gert Doering <[email protected]>
(cherry picked from commit d3f84af)
  • Loading branch information
flichtenheld authored and cron2 committed Jan 18, 2024
1 parent 20bc8bd commit 7b1f200
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions doc/man-sections/proxy-options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
is required, a file name to an ``authfile`` file containing a username
and password on 2 lines can be given, or :code:`stdin` to prompt from
console. Its content can also be specified in the config file with the
``--http-proxy-user-pass`` option. (See section on inline files)
``--http-proxy-user-pass`` option (See `INLINE FILE SUPPORT`_).

The last optional argument is an ``auth-method`` which should be one
of :code:`none`, :code:`basic`, or :code:`ntlm`.
Expand All @@ -25,11 +25,40 @@
Examples:
::

# no authentication
http-proxy proxy.example.net 3128
# basic authentication, load credentials from file
http-proxy proxy.example.net 3128 authfile.txt
# basic authentication, ask user for credentials
http-proxy proxy.example.net 3128 stdin
http-proxy proxy.example.net 3128 auto basic
http-proxy proxy.example.net 3128 auto-nct ntlm
# NTLM authentication, load credentials from file
http-proxy proxy.example.net 3128 authfile.txt ntlm2
# determine which authentication is required, ask user for credentials
http-proxy proxy.example.net 3128 auto
# determine which authentication is required, but reject basic
http-proxy proxy.example.net 3128 auto-nct
# determine which authentication is required, but set credentials
http-proxy proxy.example.net 3128 auto
http-proxy-user-pass authfile.txt
# basic authentication, specify credentials inline
http-proxy proxy.example.net 3128 "" basic
<http-proxy-user-pass>
username
password
</http-proxy-user-pass>

--http-proxy-user-pass userpass
Overwrite the username/password information for ``--http-proxy``. If specified
as an inline option (see `INLINE FILE SUPPORT`_), it will be interpreted as
username/password separated by a newline. When specified on the command line
it is interpreted as a filename same as the third argument to ``--http-proxy``.

Example::

<http-proxy-user-pass>
username
password
</http-proxy-user-pass>

--http-proxy-option args
Set extended HTTP proxy options. Requires an option ``type`` as argument
Expand Down

0 comments on commit 7b1f200

Please sign in to comment.