Page 1 of 1

Script username but not password

Posted: Tue Sep 06, 2011 6:52 pm
by phunni
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?

Re: Script username but not password

Posted: Wed Sep 07, 2011 1:02 pm
by janjust
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.

Re: Script username but not password

Posted: Wed Sep 07, 2011 1:07 pm
by phunni
Thanks for the reply. In that case it's probably easiest to just try and do it in a shell script.