Save username only and prompt for password
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 2
- Joined: Wed Nov 28, 2012 11:01 pm
Save username only and prompt for password
Hi,
i just seached into forum and over google but i found no solution.
In my config file i have auth-user-pass parameter and client prompt me for user and password.
I would like to save ONLY the username and promped for password each time i connect.
It's is possible? I', running openvpn2.2.2 on windows 7 32 bit.
Thanks
i just seached into forum and over google but i found no solution.
In my config file i have auth-user-pass parameter and client prompt me for user and password.
I would like to save ONLY the username and promped for password each time i connect.
It's is possible? I', running openvpn2.2.2 on windows 7 32 bit.
Thanks
-
- OpenVpn Newbie
- Posts: 2
- Joined: Wed Nov 28, 2012 11:01 pm
Re: Save username only and prompt for password
Up.............
-
- OpenVpn Newbie
- Posts: 4
- Joined: Wed Feb 13, 2013 10:51 pm
Re: Save username only and prompt for password
Bump. I am interested in this too. Is there a way to do this?
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: Save username only and prompt for password
currently there is no way to do this in openvpn 2.2 or 2.3; the patch is fairly trivial, I guess, but nobody has bothered to write it thus far.
-
- OpenVpn Newbie
- Posts: 1
- Joined: Tue Sep 22, 2015 12:57 pm
Re: Save username only and prompt for password
Hi,
is there any news here? I would like to save only the username and not the password. Has this function been implemented now?
Thanks
Stefan
is there any news here? I would like to save only the username and not the password. Has this function been implemented now?
Thanks
Stefan
-
- OpenVpn Newbie
- Posts: 1
- Joined: Tue Jan 19, 2016 9:15 pm
Re: Save username only and prompt for password
Pretty sure for the linux client (openvpn file.opvn). You can put this in the file:
And said file has just a single line (you may want relative paths):
And it will prompt for just the password.
Code: Select all
auth-user-pass file.txt
Code: Select all
name
-
- OpenVPN User
- Posts: 33
- Joined: Sat Feb 09, 2013 9:10 pm
Re: Save username only and prompt for password
Re the last poster, does that definitely work with the Linux client? It doesn't work with the Windows client.
If you just have the single line, it'll come back right away with an error ("Connecting to [username] has failed."). If you create a newline after it, it does the same. Perhaps there's some other nuance to this.
The manual seems to agree with you though. Could it be in reference to Linux only?
If you just have the single line, it'll come back right away with an error ("Connecting to [username] has failed."). If you create a newline after it, it does the same. Perhaps there's some other nuance to this.
The manual seems to agree with you though. Could it be in reference to Linux only?
--auth-user-pass [up]
Authenticate with server using username/password. up is a file containing username/password on 2 lines. If the password line is missing, OpenVPN will prompt for one.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Save username only and prompt for password
At this time under windows, using username only in the file does not work.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Save username only and prompt for password
A more detailed explanation can be found here:
https://sourceforge.net/p/openvpn/mailm ... /35293066/
https://sourceforge.net/p/openvpn/mailm ... /35293066/
-
- OpenVPN User
- Posts: 33
- Joined: Sat Feb 09, 2013 9:10 pm
Re: Save username only and prompt for password
>We could easily make querying from management get higher priority over
>reading from file/console, but, given that the latest GUI remembers
>username, there may not be a strong need for such a feature.
Has anyone seen it do that on Windows?
>reading from file/console, but, given that the latest GUI remembers
>username, there may not be a strong need for such a feature.
Has anyone seen it do that on Windows?
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Save username only and prompt for password
If you mean:
See here:
http://build.openvpn.net/downloads/snapshots/
You need the latest development snapshot not the 2.3.11 release.rseiler wrote:given that the latest GUI remembers
>username
See here:
http://build.openvpn.net/downloads/snapshots/
-
- OpenVPN User
- Posts: 33
- Joined: Sat Feb 09, 2013 9:10 pm
Re: Save username only and prompt for password
I haven't been following how those pre-releases work, but the latest one there seems to still be a 2.3.11 (but a later version of it). Today, 2.3.12 was released publicly, so if version numbers mean anything, then I would think it would have it. I haven't been able to test yet.TinCanTech wrote:If you mean:You need the latest development snapshot not the 2.3.11 release.rseiler wrote:given that the latest GUI remembers
>username
See here:
http://build.openvpn.net/downloads/snapshots/
-
- OpenVpn Newbie
- Posts: 1
- Joined: Wed Nov 02, 2016 1:04 pm
Re: Save username only and prompt for password
Is the Windows client for 2.3.12 supposed to be able to remember only the username?
If so, how?
If so, how?
-
- OpenVPN User
- Posts: 33
- Joined: Sat Feb 09, 2013 9:10 pm
Re: Save username only and prompt for password
I don't know. Even the 2.3.13 client doesn't do it here. Username is never remembered.
-
- OpenVPN Super User
- Posts: 310
- Joined: Tue Apr 12, 2011 6:22 am
Re: Save username only and prompt for password
the beta 2.4 does , and i didn't have any issues with it regarding to connect to remote servers.
-
- OpenVPN User
- Posts: 33
- Joined: Sat Feb 09, 2013 9:10 pm
Re: Save username only and prompt for password
What's the trick? I just tried it with the newly-posted 2.4 RC1, which I see in the release notes has "Support for username-only auth file," but when I removed the PW from my file and tried making a connection, I got the usual immediate "Connection has failed" (same as what I get with 2.3). The log reads "Failed retrieving username or password."
Somewhere a while back I read that the end of the auth file needs to have a blank line, but that didn't work either.
Somewhere a while back I read that the end of the auth file needs to have a blank line, but that didn't work either.
-
- OpenVPN User
- Posts: 33
- Joined: Sat Feb 09, 2013 9:10 pm
Re: Save username only and prompt for password
RC2 is out now. No change.
@TiTex, still waiting on you to clear up specifically how it's done.
@TiTex, still waiting on you to clear up specifically how it's done.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Save username only and prompt for password
It works as expected ..rseiler wrote:RC2 is out now. No change
--auth-user-pass useronly.txt
useronly.txt
username
-
- OpenVPN User
- Posts: 33
- Joined: Sat Feb 09, 2013 9:10 pm
Re: Save username only and prompt for password
There's some other variable, because that's how I've been trying it. It quickly comes back with the error I mentioned a couple message ago.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Save username only and prompt for password
There is some other variable because it works fine if done correctly.rseiler wrote:There's some other variable, because that's how I've been trying it
rseiler wrote:It quickly comes back with the error I mentioned a couple message ago.
Sure ..rseiler wrote:I got the usual immediate "Connection has failed" (same as what I get with 2.3). The log reads "Failed retrieving username or password."
Please read this:
HOWTO: Request Help !
Then start a detailed thread in the appropriate place, thanks.