From: "plaisthos (Code Review)" Date: Mon, 24 Mar 2025 12:59:57 +0000 References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <432a8e1b666c3eb230dd4faa41fea134a3e59f0b-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="5xvOoH7+xM0="; 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: flichtenheld Cc: openvpn-devel --5xvOoH7+xM0= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld. Hello flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/914?usp=3Demail to review the following change. 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 --- 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/1 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: 1 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: flichtenheld Gerrit-MessageType: newchange --5xvOoH7+xM0= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld.

plaisthos would like flichtenheld to review this change.

Vi= ew Change

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: Ifc7443974345042ab9= 945d6a10e1d1b4525e5e05
Signed-off-by: Arne Schwabe <arne@...1227...&g= t;
---
M doc/man-sections/server-options.rst
1 file changed, 10 in= sertions(+), 1 deletion(-)

git pull ssh://gerrit.openvpn.net:2941=
8/openvpn refs/changes/14/914/1
diff --git a/doc/man-sections/serve=
r-options.rst b/doc/man-sections/server-options.rst
index e= 93b04d..ccc1374 100644
--- a/doc/man-sections/server-option= s.rst
+++ b/doc/man-sections/server-options.rst
<= span>@@ -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 pro= vided username
+ wil= l be replaced by the username provided by ``--override-username``.+ If the client changes to a= username that is different from both the initial
+ and the overridden username, the client wil= l be rejected.

Special care should be = taken that both the initial username of the client
and t= he overridden username are handled correctly when using
@@ = -444,6 +449,10 @@
can be used for ``--auth-gen-token`` t= o allow providing a username in
these scenarios.<= br>
+ If the = ``--auth-token`` directive is pushed by another script/plugin or
= + management interface, consid= er also generating and pushing
+ ``--auth-token-user``.
+
--port-share args
Shar= e OpenVPN TCP with another service


To view, visit change 914. To unsubscribe, or for help writing mai= l filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ifc7443974345042ab9945d6a10e= 1d1b4525e5e05
Gerrit-Change-Number: 914
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newchange
--5xvOoH7+xM0=--