Remember login credentials

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
levseltzer
OpenVpn Newbie
Posts: 3
Joined: Tue Aug 16, 2011 5:23 am

Remember login credentials

Post by levseltzer » Tue Aug 16, 2011 5:27 am

Is there a way in Windows 7 to tell OpenVPN to remember the username and password for a particular VPN? OpenVPN remembers the IP, but I am asked for the username and password each time, which is very inconvenient. I would like to have the whole connection process automated so that OpenVPN can connected me to the VPN when I start windows.

Thank you.

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

Re: Remember login credentials

Post by janjust » Tue Aug 16, 2011 11:07 am

which username/password do you mean? for a certificate or is your setup based on an 'auth-user-pass' setup? In the latter case the openvpn 2.2 installer *should* allow you to store the username+password in a file using
auth-user-pass <path-to-file>

levseltzer
OpenVpn Newbie
Posts: 3
Joined: Tue Aug 16, 2011 5:23 am

Re: Remember login credentials

Post by levseltzer » Tue Aug 16, 2011 11:51 am

I start open VPN
I type in the IP address given to me by the hosting company
I click connect
After a few moments I am asked for the username and password
I enter them, tick remember password during this connection and click login
I'll connect without a problem.
But after disconnecting (or rebooting) I have to enter the username and password again.
I want this to be more automated.
How can I do it?

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

Re: Remember login credentials

Post by janjust » Tue Aug 16, 2011 11:56 am

I enter them, tick remember password during this connection and click login
AFAIK this is not an option that is provided by OpenVPN - thus, it would be a ISP-specific setting that I know nothing about. What does your client config file look like?

levseltzer
OpenVpn Newbie
Posts: 3
Joined: Tue Aug 16, 2011 5:23 am

Re: Remember login credentials

Post by levseltzer » Tue Aug 16, 2011 2:34 pm

The profile provided for me by the network host is below.
The certificates have been deleted from this forum post for security reasons.

Code: Select all

# Automatically generated OpenVPN client config file
# Generated on Tue Aug 16 09:28:27 2011 by cust-vpn1.hspheredns.com
# Note: this config file contains inline private keys
#       and therefore should be kept confidential!
# Note: this configuration is user-locked to the username below
# OVPN_ACCESS_SERVER_USERNAME=webuilder
# Define the profile name of this particular configuration file
# OVPN_ACCESS_SERVER_PROFILE=webuilder@67.(CUT)
# OVPN_ACCESS_SERVER_WSHOST=(CUT)
# OVPN_ACCESS_SERVER_WEB_CA_BUNDLE_START
# -----BEGIN CERTIFICATE-----
# (CUT)
# -----END CERTIFICATE-----
# OVPN_ACCESS_SERVER_WEB_CA_BUNDLE_STOP
# OVPN_ACCESS_SERVER_IS_OPENVPN_WEB_CA=1
# OVPN_ACCESS_SERVER_ORGANIZATION=OpenVPN Technologies, Inc.
client
setenv SERVER_POLL_TIMEOUT 4
nobind
remote (CUT)  1194 udp
remote (CUT) 443 tcp
dev tun
dev-type tun
ns-cert-type server
reneg-sec 604800
sndbuf 100000
rcvbuf 100000
auth-user-pass
auth-retry interact
# NOTE: LZO commands are pushed by the Access Server at connect time.
# NOTE: The below line doesn't disable LZO.
comp-lzo no
verb 3

<ca>
-----BEGIN CERTIFICATE-----
# (CUT)
-----END CERTIFICATE-----
</ca>

<cert>
-----BEGIN CERTIFICATE-----
# (CUT)
-----END CERTIFICATE-----
</cert>

<key>
-----BEGIN RSA PRIVATE KEY-----
# (CUT)
-----END RSA PRIVATE KEY-----
</key>

key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key (Server Agent)
#
-----BEGIN OpenVPN Static key V1-----
# (CUT)
-----END OpenVPN Static key V1-----
</tls-auth>

# -----BEGIN RSA SIGNATURE-----
# (CUT)
# -----END RSA SIGNATURE-----

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

Re: Remember login credentials

Post by janjust » Tue Aug 16, 2011 2:49 pm

this is an OpenVPN Access Server question; I'm moving the question to the appropriate forum. Sorry but I cannot help you with this.

Post Reply