Script username but not password

How to customize and extend your OpenVPN installation.
Post Reply
phunni
OpenVpn Newbie
Posts: 2
Joined: Tue Sep 06, 2011 6:50 pm

Script username but not password

Post by phunni » Tue Sep 06, 2011 6:52 pm

I currently have openvpn working on my linux machine and am using a credentials file to authenticate via --auth-user-pass

What I would like to be able to do is have my username remembered, but have to enter my password everytime - is that possible?

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Script username but not password

Post by janjust » Wed Sep 07, 2011 1:02 pm

nope, currently this cannot be done, but it'd be a really small change to the openvpn source code : you could either pull in the username via an environment variable or you could add an extra option to specify the auth_user_pass username.

phunni
OpenVpn Newbie
Posts: 2
Joined: Tue Sep 06, 2011 6:50 pm

Re: Script username but not password

Post by phunni » Wed Sep 07, 2011 1:07 pm

Thanks for the reply. In that case it's probably easiest to just try and do it in a shell script.

Post Reply