# Unable to connect using --auth-user-pass switch

**URL:** <https://forum.pritunl.com/t/unable-to-connect-using-auth-user-pass-switch/383>\
**Category:** Pritunl\
**Tags:** pritunl-client\
**Created:** [September 9, 2022, 5:42am UTC](https://forum.pritunl.com/t/unable-to-connect-using-auth-user-pass-switch/383 "2022-09-09T05:42:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![whatthejay](https://forum.pritunl.com/user_avatar/forum.pritunl.com/whatthejay/32/147_2.png) [@whatthejay](https://forum.pritunl.com/u/whatthejay)\
**Post date:** [September 9, 2022, 5:42am UTC](https://forum.pritunl.com/t/unable-to-connect-using-auth-user-pass-switch/383/1 "2022-09-09T05:42:28Z")

</div>

Hi, Team.

I’m using latest version of pritunl client (1.3.3283.46) on Windows 10 x64 machine.  
I’ve recently upgraded the version from 1.2.2732.2 and I can’t connect to the OpenVPN server.

The log says,

2022-09-09 14:38:13 Windows version 10.0 (Windows 10 or greater) 64bit/n  
2022-09-09 14:38:13 library versions: OpenSSL 1.1.1n 15 Mar 2022, LZO 2.10/n  
2022-09-09 14:38:13 ERROR: Auth username is empty/n  
2022-09-09 14:38:13 Exiting due to fatal error/n  
Enter Auth Username:Enter Auth Password:  
/n

And here’s my profile configuration

persist-key  
reneg-sec 0  
auth-nocache  
**auth-user-pass C:/username.txt**  
verb 4  
key-direction 1

The same profile still works fine with the older version of Pritunl client.  
Also, when I try to connect using openvpn.exe file in the  
“C:\Program Files (x86)\Pritunl\openvpn” using same profile, it works fine.

**“C:\Program Files (x86)\Pritunl\openvpn” myprofile.ovpn**

Is there any workaround to solve this problem?

Thanks.

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [September 10, 2022, 1:51am UTC](https://forum.pritunl.com/t/unable-to-connect-using-auth-user-pass-switch/383/2 "2022-09-10T01:51:28Z")

</div>

The `auth-user-pass` and `auth-nocache` options are no longer supported. The newer versions of the client parse and filter the configuration in [**service/parser/ovpn.go**](https://github.com/pritunl/pritunl-client-electron/blob/master/service/parser/ovpn.go)

---

<div class="post-metadata">

**Author:** ![whatthejay](https://forum.pritunl.com/user_avatar/forum.pritunl.com/whatthejay/32/147_2.png) [@whatthejay](https://forum.pritunl.com/u/whatthejay)\
**Post date:** [September 11, 2022, 9:53am UTC](https://forum.pritunl.com/t/unable-to-connect-using-auth-user-pass-switch/383/3 "2022-09-11T09:53:35Z")

</div>

Thanks for the response.

Then how can I pass the username and password to connect to the VPN server? Is that authentication not supported anymore?

Thanks.

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [September 12, 2022, 10:45pm UTC](https://forum.pritunl.com/t/unable-to-connect-using-auth-user-pass-switch/383/4 "2022-09-12T22:45:31Z")

</div>

Username and password authentication should function on both the new and classic interface. There won’t be any support for saving passwords or providing password files.

---

<div class="post-metadata">

**Author:** ![frankiedrake](https://forum.pritunl.com/user_avatar/forum.pritunl.com/frankiedrake/32/272_2.png) [@frankiedrake](https://forum.pritunl.com/u/frankiedrake)\
**Post date:** [January 20, 2023, 9:05am UTC](https://forum.pritunl.com/t/unable-to-connect-using-auth-user-pass-switch/383/5 "2023-01-20T09:05:03Z")

</div>

Hello, I have similar problem, my config works fine with the Classic interface, asking for user and password, but with the new one, these prompts are skipped and I cannot connect to a vpn service.  
Also, after importing a profile it shows “User -”. What can I do?

---

<div class="post-metadata">

**Author:** ![Feeding](https://forum.pritunl.com/user_avatar/forum.pritunl.com/feeding/32/612_2.png) [@Feeding](https://forum.pritunl.com/u/Feeding)\
**Post date:** [October 10, 2023, 8:32am UTC](https://forum.pritunl.com/t/unable-to-connect-using-auth-user-pass-switch/383/6 "2023-10-10T08:32:02Z")

</div>

> [@zach](#):
>
> **service/parser/ovpn.go**

why not save passwords? It’s conducive. My password is very strong that I can remember it. I can imagine I can’t keep my pass in files.

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [October 10, 2023, 11:57pm UTC](https://forum.pritunl.com/t/unable-to-connect-using-auth-user-pass-switch/383/7 "2023-10-10T23:57:33Z")

</div>

Allowing an option that takes a file path to read significantly increases the risk of privilege escalation vulnerabilities. Most administrators don’t want the user to have the ability to save passwords. Also the only password used by Pritunl servers is for a Radius configuration, all other passwords are secondary authentication.

---

<div class="post-metadata">

**Author:** ![Feeding](https://forum.pritunl.com/user_avatar/forum.pritunl.com/feeding/32/612_2.png) [@Feeding](https://forum.pritunl.com/u/Feeding)\
**Post date:** [October 12, 2023, 2:15am UTC](https://forum.pritunl.com/t/unable-to-connect-using-auth-user-pass-switch/383/9 "2023-10-12T02:15:26Z")

</div>

for our case, we use LDAP login vpn for access internal, but our LDAP rule password is very strong, I bet you will forget it some days. the same case in Chrome, they prove the password remember, the risk is bigger than pritunl. But user still have option. At least pritunl-client-electron personal member are most. this product should serve person I think.
