From: "cron2 (Code Review)" Date: Mon, 24 Mar 2025 14:00:25 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <87428eab7bfa2a4f3361af55f3d95e3059309753-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="WuiDEAXElPc="; 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 Cc: flichtenheld , openvpn-devel --WuiDEAXElPc= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/91= 4?usp=3Demail ) 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(-) 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: merged --WuiDEAXElPc= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 submitted this change.

View Change

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

Change-Id: Ifc7= 443974345042ab9945d6a10e1d1b4525e5e05
Signed-off-by: Arne Schwabe <ar= ne@...1227...>
Acked-by: Frank Lichtenheld <frank@...2641...>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-se= ctions/server-options.rst
1 file changed, 10 insertions(+), 1 deletion(-= )

diff --git a/doc/man-sections/server-options.rst b/doc/man-sections/serv=
er-options.rst
index e93b04d..ccc1374 100644
--- a/doc/man-sections/server-options.rst
+++ b/doc/man-s= ections/server-options.rst
@@ -432,7 +432,12 @@
<= span>
The changed username will be picked up by the sta= tus 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-tok= en`` is enabled.
+
+ Internally on all su= bsequent renegotiations the client provided username
+ will be replaced by the username provid= ed by ``--override-username``.
+ If the client changes to a username that is different from bot= h the initial
+ 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 c= orrectly 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``.<= /span>
+
--= port-share args
Share OpenVPN TCP with another service


To view, visit change 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: merged
--WuiDEAXElPc=--