From: "cron2 (Code Review)" Date: Mon, 24 Mar 2025 14:00:22 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <87428eab7bfa2a4f3361af55f3d95e3059309753-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="wBqbhauh/dU="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Improve documentation for override-username List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , flichtenheld Cc: openvpn-devel --wBqbhauh/dU= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/914?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by flichtenheld Change subject: Improve documentation for override-username ...................................................................... Improve documentation for override-username - Mention that pushing auth-token-user only happens when OpenVPN also generates the auth-token. - mention that OpenVPN will only accept the original and overridden username from a client - suggest to use auth-token-user when a user generates the auth-token Change-Id: Ifc7443974345042ab9945d6a10e1d1b4525e5e05 Signed-off-by: Arne Schwabe Acked-by: Frank Lichtenheld Message-Id: <20250324135441.26725-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg31= 210.html Signed-off-by: Gert Doering --- M doc/man-sections/server-options.rst 1 file changed, 10 insertions(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/14/914/2 diff --git a/doc/man-sections/server-options.rst b/doc/man-sections/server-= options.rst index e93b04d..ccc1374 100644 --- a/doc/man-sections/server-options.rst +++ b/doc/man-sections/server-options.rst @@ -432,7 +432,12 @@ The changed username will be picked up by the status output and also by the ``--auth-gen-token`` option. It will also be pushed to the client - using ``--auth-token-user``. + using ``--auth-token-user`` if ``--auth-gen-token`` is enabled. + + Internally on all subsequent renegotiations the client provided username + will be replaced by the username provided by ``--override-username``. + If the client changes to a username that is different from both the init= ial + and the overridden username, the client will be rejected. Special care should be taken that both the initial username of the client and the overridden username are handled correctly when using @@ -444,6 +449,10 @@ can be used for ``--auth-gen-token`` to allow providing a username in these scenarios. + If the ``--auth-token`` directive is pushed by another script/plugin or + management interface, consider also generating and pushing + ``--auth-token-user``. + --port-share args Share OpenVPN TCP with another service -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/914?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ifc7443974345042ab9945d6a10e1d1b4525e5e05 Gerrit-Change-Number: 914 Gerrit-PatchSet: 2 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-MessageType: newpatchset --wBqbhauh/dU= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 uploaded patch set #2 to the change originally cr= eated by plaisthos.

View Change

The following approvals got outdated= and were removed: Code-Review+2 by flichtenheld

Improve documentation for override-username
- Mention that pushing auth-token-user only happens when OpenVPN also=
generates the auth-token.
- mention that OpenVPN will only accept = the original and overridden username
from a client
- suggest to use= auth-token-user when a user generates the auth-token

Change-Id: Ifc= 7443974345042ab9945d6a10e1d1b4525e5e05
Signed-off-by: Arne Schwabe <a= rne@...1227...>
Acked-by: Frank Lichtenheld <frank@...2641...><= br>Message-Id: <20250324135441.26725-1-gert@...1296...>
URL: https= ://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg31210.htmlSigned-off-by: Gert Doering <gert@...1296...>
---
M doc/man-s= ections/server-options.rst
1 file changed, 10 insertions(+), 1 deletion(= -)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/1=
4/914/2
diff --git a/doc/man-sections/server-options.rst b/doc/man-=
sections/server-options.rst
index e93b04d..ccc1374 100644
--- a/doc/man-sections/server-options.rst
++= + b/doc/man-sections/server-options.rst
@@ -432,7 +432,12 @= @

The changed username will be picked = up by the status output and also by
the ``--auth-gen-tok= en`` option. It will also be pushed to the client
- using ``--auth-token-user``.
+ using ``--auth-token-user`` if ``-= -auth-gen-token`` is enabled.
+
+ Interna= lly on all subsequent renegotiations the client provided username+ will be replaced by the use= rname provided by ``--override-username``.
+ If the client changes to a username that is differ= ent from both the initial
+ and the overridden username, the client will be rejected.
Special care should be taken that both the init= ial username of the client
and the overridden username a= re handled correctly when using
@@ -444,6 +449,10 @@=
can be used for ``--auth-gen-token`` to allow providing a user= name in
these scenarios.

+ If the ``--auth-token`` directi= ve is pushed by another script/plugin or

+ management interface, consider also generating and p= ushing
+ ``--auth-to= ken-user``.
+<= br> --port-share args
Share OpenVPN TCP with anoth= er service


To view, v= isit chan= ge 914. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ifc7443974345042ab9945d6a10e= 1d1b4525e5e05
Gerrit-Change-Number: 914
Gerrit-PatchSet: 2
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: newpatchset
--wBqbhauh/dU=--