Skip to content
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

Support AuthUserPass? #165

Open
pwFoo opened this issue Apr 2, 2017 · 8 comments
Open

Support AuthUserPass? #165

pwFoo opened this issue Apr 2, 2017 · 8 comments

Comments

@pwFoo
Copy link

pwFoo commented Apr 2, 2017

Hi,

I read the wiki article about vpn and also that AuthUserPass isn't supported, but I need to add an OTP to the password. So I can't use cmst :(

Is there a chance to add a (simple) dialog to enter user / pass?

@andrew-bibb
Copy link
Owner

Just want to clarify. --auth-user-pass in the config file is supported, but it must point to a disk file which is read for user name and password. What does not work is having the option without pointing to a disk file because that tells OpenVPN to read the information from stdin.

Want to make sure I understand correctly. You'd like the option to have CMST prompt for the user name and password then provide those to to OpenVPN via stdin - therefore bypassing the user/pass file? If that is you are after I'll certainly look into it, but I'm not sure it is possible since CMST only interfaces with ConnMan. It is ConnMan which interfaces with OpenVPN, and if I recall correctly I put in the user/pass file and removed the plain --auth-user-pass option because there was no way to send the data via stdin with ConnMan.

@pwFoo
Copy link
Author

pwFoo commented Apr 3, 2017

Hi Andrew,

thanks for your quick answer!

Yes, I need a user / pass prompt because I have to use google authenticator (OTP added to password). So I can't work with a "static" file.
I really like cmst so it would be great to use it for openvpn too.

Regards

@andrew-bibb
Copy link
Owner

andrew-bibb commented Apr 5, 2017

We do have the vpn-agent, but not sure why it is not asking for user name and password.

I will look into this, but want to let you know that it is not going to be quick. It actually gives me a good feature for the next release, but I have a lot on my plate at the moment and I don't want to get your hopes up that it will be coming in the next month or so.

[edit] - thought at first we didn't have a vpn-agent, but we do. Now need to find out why it is not asking for information in this case.

@pwFoo
Copy link
Author

pwFoo commented Apr 5, 2017

Thanks for feedback, @andrew-bibb
New release with that feature (few month?) would be fine ;)

@pwFoo
Copy link
Author

pwFoo commented Oct 12, 2017

Any plans / progress here?

@andrew-bibb
Copy link
Owner

Sorry. I did look and our vpn-agent implements what ConnMan supports and does start properly. To try and work around the limitation of requiring input from STDIN I am going to need to hack something.

Getting to the time of year where weather dictates I'll be at my computer a bit more. However I don't want to get your hopes up as because of family reasons I'm finding that I'm spending about 2 weekends every month driving from one side of New England to the other (and back again). Since about March of this year my free time has been almost non-existent.

@andrew-bibb
Copy link
Owner

Sorry about the long delay, in addition to the weather starting to cooperate things on the personal end seem to be (temporarily at least) somewhat more stable.

I was looking at this and am wondering if the OpenVPN.AskPass option might work. In the VPN provisioning editor I had that as a yes/no which was incorrect. Just changed the code to be a file selector and uploaded it a few minutes ago.

I have found a bug report online about OpenVPN not working if askpass is set to stdin. It seems old and is marked "fixed". The file selector won't let you type in something that does not exist, for instance stdin, but that can be worked around or just type in the line manually. Thing is I don't know if ConnMan can deal with it set to stdin, nor do I know if that is what you actually need.

@pwFoo
Copy link
Author

pwFoo commented Nov 19, 2017

Have you successfully tested it with stdin / askpass? If it works it should be fine for me.

Because of the OneTimePass I need to type the password (password + otp) during vpn connect. The otp changes every 60 seconds. For testing I tried to save the current pass+otp to a auth file, which should work, but isn't fine for every day use. g
Maybe it could be a workaround to set a auth file, add a interactive password input window during connect and write it to a "temp" auth file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants