-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The openvpn log is faulty. Procedure #295
Comments
At the moment, this feature is not supported in OpenVPN, if external authentication is used. |
Can OpenVPn-auth-oAuth2 override openvpn user names? What's the good solution |
No, OpenVPN does not provide any interface that allows that.
For this topic, a solution does not exist yet. |
Brother, according to my current thinking, openvpn collects information about users according to the auth-user-pass option, which I do not use. The authentication method I use as casdoor, oauth2, is after auth-user-pass. auth-user-pass has defined username at this time, and the username of casdoor collected later cannot override it. Can I improve this if I call oauth2 first for authentication? Does it work? log: TLS: Username/Password authentication deferred for username '' [CN SET] |
The correct username must sent by the client and cant be changed. |
I don't understand what you mean. If the username and password are used for authentication and the username information is needed, the client must provide the username and password information, right? However, if the auth-user-pass parameter is not used, can openvpn directly use the url authentication mode provided by the oauth2 plug-in instead of delayed authentication? |
The username must come from the client. This is a design choice at OpenVPN server and it is not my control to change that behavior. The OpenVPN server doesn't have any capabilities to set a username on a connection. But feel free to implement the requested functionally in OpenVPN server directly. Once availible, openvpn-auth-oauth2 is happy to implement the new interface. See #202 |
Problem Statement
When openvpn interconnects with oauth2 plug-in to jump to casdoor, if the client does not use auth-user-pass, skip user name and password authentication, OpenVPn. log will not collect user login information, I want to log in to the user to do ccd route control, is there a way to solve this brother
openvpn-auth-oauth2 logs
Environment
The text was updated successfully, but these errors were encountered: