OpenVPN 2.3.8 and Auth files
Hi all,
I'm looking to use an auth.txt file but with my OpenVPN version it appears it doesn't work. I get the following error.
Thu Mar 17 05:00:00 2016 OpenVPN 2.3.8 x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Sep 30 2015
Thu Mar 17 05:00:00 2016 library versions: OpenSSL 1.0.1e 11 Feb 2013, LZO 2.06
Thu Mar 17 05:00:00 2016 Sorry, 'Auth' password cannot be read from a file
Thu Mar 17 05:00:00 2016 Exiting due to fatal error
Googling around the issue gives the following: https://forums.openvpn.net/topic9918.html
Pretty much says: "you will need to recompile the OpenVPN client to support reading passwords from a file". and (sic) build OpenVPN using
I'm looking to use an auth.txt file but with my OpenVPN version it appears it doesn't work. I get the following error.
Thu Mar 17 05:00:00 2016 OpenVPN 2.3.8 x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Sep 30 2015
Thu Mar 17 05:00:00 2016 library versions: OpenSSL 1.0.1e 11 Feb 2013, LZO 2.06
Thu Mar 17 05:00:00 2016 Sorry, 'Auth' password cannot be read from a file
Thu Mar 17 05:00:00 2016 Exiting due to fatal error
Googling around the issue gives the following: https://forums.openvpn.net/topic9918.html
Pretty much says: "you will need to recompile the OpenVPN client to support reading passwords from a file". and (sic) build OpenVPN using
"./configure --enable-password-save"
So build it myself I will. However; this causes "configure: WARNING: unrecognized options: --enable-password-save" Head meet keyboard time.
Just wondering if anyone can assist me to stop chasing my tail.
So build it myself I will. However; this causes "configure: WARNING: unrecognized options: --enable-password-save" Head meet keyboard time.
Just wondering if anyone can assist me to stop chasing my tail.
Comments
My sincere apologies as I didn't word it well, but that's the problem I'm having. I can't use an auth.txt/login.conf/whatever.wtf file, as it gives the error "Sorry, 'Auth' password cannot be read from a file".
It's due to the way it's compiled. When you do "openvpn --version | grep password" ensure that "enable_password_save=yes" else auth.txt won't work, regardless of what you put there.
EDIT: Also your version of OpenVPN is very old. This is mine:
seems to me the thing to do is teach NetworkManager to manage the VPN for you or you'll have to script with expect to accomplish programmatically what you do manually.
@mamphp Can you show what your OpenVPN configuration file look like?