--auth-user-pass fails with

Need help configuring your VPN? Just post here and you'll get that help.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
Flo81
OpenVpn Newbie
Posts: 3
Joined: Wed Apr 04, 2018 2:02 pm

--auth-user-pass fails with

Post by Flo81 » Wed Apr 04, 2018 2:12 pm

Hello

I can't log on with --user-auth-pass

I tried ANSI, unicode, and UTF8, move and rename the pass.txt still the same error

I've done exactly what is said in several tutorials but none worked

Code: Select all

Wed Apr 04 15:56:35 2018 WARNING: cannot stat file 'C:\Program Files\OpenVPN\config\pass.txt': No such file or directory (errno=2)
Options error: --auth-user-pass fails with 'C:\Program Files\OpenVPN\config\pass.txt'
Options error: Please correct these errors.
Use --help for more information.
Press any key to continue...
Please help

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

Re: --auth-user-pass fails with

Post by TinCanTech » Wed Apr 04, 2018 2:50 pm

Flo81 wrote:
Wed Apr 04, 2018 2:12 pm
WARNING: cannot stat file 'C:\Program Files\OpenVPN\config\pass.txt': No such file or directory (errno=2)
I presume you have this in your config file:

Code: Select all

auth-user-pass "C:\Program Files\OpenVPN\config\pass.txt"
when you need to have this:

Code: Select all

auth-user-pass "C:\\Program Files\\OpenVPN\\config\\pass.txt"
Double backslash .. "\\" .. like it says in the Manual

Flo81
OpenVpn Newbie
Posts: 3
Joined: Wed Apr 04, 2018 2:02 pm

Re: --auth-user-pass fails

Post by Flo81 » Wed Apr 04, 2018 6:34 pm

Thanks for reply

Here is my ovpn
wrong ovpn
# host/port of vpn server
remote gw1.ams2.octanevpn.com 8888

# file containing username and password
auth-user-pass "C:\\Program Files\\OpenVPN\\config\\pass.txt"

# equivalent to pull, tls-client
client

# redirect all outgoing traffic to the vpn gateway
redirect-gateway

# verify the server certificate for authenticity
remote-cert-tls server

#cipher
cipher AES-256-CB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WhAJ4Pyc/yBTYyQGNoriABjmNzp+R05oiaxA
D3vTgR80juKDPtQb8LoGLBF18gL7Vtc3+hJXcJasXZaDSSoyh5f+TtGvytIT+ece
JWIrKnFXzlHOvKlyLkcZn15gwK
-----END CERTIFICATE-----
</ca>
Image

Flo81
OpenVpn Newbie
Posts: 3
Joined: Wed Apr 04, 2018 2:02 pm

Re: --auth-user-pass fails with

Post by Flo81 » Fri Apr 06, 2018 2:01 pm

Please someone can help me ?

hiThere
OpenVpn Newbie
Posts: 1
Joined: Thu Apr 12, 2018 1:03 pm

Re: --auth-user-pass fails with

Post by hiThere » Thu Apr 12, 2018 1:07 pm

Had the same issue. It is not actually pass.txt but pass.txt.txt :) Try to turn off "hide extensions for known file types". :)
http://www.thewindowsclub.com/show-file ... in-windows

Post Reply