Saving Username/Password

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

anatakwala
OpenVpn Newbie
Posts: 1
Joined: Thu Jan 07, 2021 8:55 pm

Re: Saving Username/Password

Post by anatakwala » Thu Jan 07, 2021 9:03 pm

auth-usr-pass "./login.conf"

This did not help in connecting OpenVpn Connect 2.6.0.100 on a Windows 10 machine.

auth-user-pass "C:\\Users\\ab\\Downloads\\login.conf"

Any suggestions on how to fix it?

dukeofurl
OpenVpn Newbie
Posts: 3
Joined: Thu Aug 27, 2020 4:02 am

Re: Saving Username/Password

Post by dukeofurl » Tue Jun 28, 2022 1:15 am

I'm trying to figure this out now, June 27th 2022. I'm not having good luck.

On mine, the .exe is called OpenVPNConnect.exe and there is no config directory next to it. The exact path is "C:\Program Files\OpenVPN Connect"
is Connect something else, a completely different program?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Saving Username/Password

Post by TinCanTech » Tue Jun 28, 2022 9:17 am

dukeofurl wrote:
Tue Jun 28, 2022 1:15 am
On mine, the .exe is called OpenVPNConnect.exe
OpenVPN-Connect-Windows is not the same as OpenVPN.

dukeofurl
OpenVpn Newbie
Posts: 3
Joined: Thu Aug 27, 2020 4:02 am

Re: Saving Username/Password

Post by dukeofurl » Wed Jun 29, 2022 4:35 am

Please, tell me what I must do then. Is there a special client I have to download? I just want a vpn to my isp that saves my username/pw. I have a ovpn file from my ISP.

glestwid
OpenVpn Newbie
Posts: 2
Joined: Thu Jun 18, 2020 9:55 am

Re: Saving Username/Password

Post by glestwid » Mon Jul 11, 2022 7:28 pm

Hi,

Is it possible to save user &pwd combination directly in the distributed .OVPN file? For example , my Keenetic router supports this tag in passed .OVPN files:

<auth-user-pass>
user
pwd
</auth-user-pass>

The target OpenVPN client is OpenVPN Connect 2.7.1.111, OS - Windows 10 x64 21H2

simon1974smith@gmail.com
OpenVpn Newbie
Posts: 1
Joined: Tue Apr 18, 2023 11:42 am

Re: Saving Username/Password

Post by simon1974smith@gmail.com » Tue Apr 18, 2023 11:45 am

Kyrax wrote:
Fri Nov 15, 2013 9:20 am
xauen wrote:1. Create a txt file on a folder alongside your .ovpn files name it what ever you want ex. 'pass.txt'
2. Put your user/pass inside the file in two(2) lines, like:

Code: Select all

username
password
3. Then save it.
4. open up your .ovpn file in notepad and add:

Code: Select all

auth-user-pass pass.txt
5. save and connect to your openvpn server.
Good morning,

i tried this but the password continue to be asked. it look like the second line isn't read. (the file pass.txt was created with notepad++)
No error messages appear in logs.

Version 2.3.2
OS: Win 7 64 bits

Thanks for your help
I got the same issue as I added a new line for auth-user-pass at the end of the .ovpn file. But there was a pre-existing auth-user-pass without any filename higher up in the .ovpn file, which cause the issue. Try add your password file with the full path to the pre-existing auth-user-pass line and leave it with that.

emoxam
OpenVpn Newbie
Posts: 8
Joined: Fri Jun 09, 2023 12:27 pm

Re: Saving Username/Password

Post by emoxam » Tue Jan 16, 2024 7:43 am

Yep.
askpass tunnel.pass
and no login in tunnel.pass
only password.
thanks!

Post Reply