Hi, On Fri, May 05, 2023 at 09:14:03AM +0200, Ralf Hildebrandt via Openvpn-users wrote: > May 5 09:06:00 openvpn-gw170-int openvpn-udp[29574]: > hildeb/10.31.192.115:55334 TLS Auth Error: username attempted to change from > 'hildeb' to 'hildeb::1f047fb6' -- tunnel disabled > May 5 09:06:00 openvpn-gw170-int openvpn-udp[29574]: > hildeb/10.31.192.115:55334 TLS Auth Error: Auth Username/Password > verification failed for peer > > What do we have to do to make the server accept the the > auth-token-user it pushed to the client?
As of today, there is no way to make it do that. On initial TLS
authentication, the session is tied hard to the initial username(*),
and changing username on reauthentication is not allowed.
That said, this breaks at least two use cases
- there was no initial username/password authentication at all - and
you absolutely need auth-token-user here, to make the client actually
send the auth-token back. It fails, because the server is locked
to "empty username" - I have sent a patch for this, but Arne is not
fully agreeing with me that it's the right thing
- actually *changing* the auth-token-user from an original username/password
authentication - it runs into the same problem, but this might be
workaroundable by not actually pushing a new "user". So, question to
you, what is the intention behind changing the username here?
For "my case", I think handling the "username was empty before" case
specially is the easy way forward (even if Arne disagrees), but for
"your case" we'd need to disable the "tie TLS session to username",
which is a no-go for Arne...
So maybe we need to introduce a new server option
push-auth-token-user $name
which would be internally converted into
push "auth-token-user $name"
+ tie $name to the TLS session
Will discuss this with Arne. Not sure he's reading openvpn-users - so
copying in openvpn-devel.
gert
--
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany [email protected]
signature.asc
Description: PGP signature
_______________________________________________ Openvpn-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-users
