login.conf correct syntax

How to customize and extend your OpenVPN installation.

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

Locked
neuronetv
OpenVPN User
Posts: 21
Joined: Fri Jun 07, 2013 7:08 pm

login.conf correct syntax

Post by neuronetv » Tue Mar 11, 2014 11:42 am

I have a centos 6.5 server 64 bit running openvpn-2.3.2-2.el6.x86_64
I run openvpn as a client and I use auth-user-pass login.conf to log on automatically. In login.conf I have just:
<username>
<password>
and openvpn logs on and works fine however the log complains with:
Options error: Unrecognized option or missing parameter(s) in login.conf:1: <username> (2.3.2)
Use --help for more information.
I tried openvpn --help but I couldn't find anything that shows correct syntax for login.conf. So what is the correct syntax that openvpn is asking for?

neuronetv
OpenVPN User
Posts: 21
Joined: Fri Jun 07, 2013 7:08 pm

Re: login.conf correct syntax

Post by neuronetv » Thu Mar 20, 2014 8:17 pm

debbie thankyou for this help. I changed login.conf to login.txt and this solved two problems, firstly the one in my op and secondly openvpn no longer shows 'FAILED' when logging on - even though the login was successful.

Locked