Ability to programmatically authenticate openvpn client

How to customize and extend your OpenVPN installation.

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

Post Reply
ovpnvd99
OpenVpn Newbie
Posts: 2
Joined: Mon Apr 22, 2013 2:51 pm

Ability to programmatically authenticate openvpn client

Post by ovpnvd99 » Mon Apr 22, 2013 3:05 pm

Hello,

I would like to know if there is a way to programmatically start openvpn client and pass username/password to connect to the server. I am trying to make this work from a custom web page to implement single sign-on capability. So essentially, instead of user launching the openvpn client and providing username/password in the credentials box, i would like to invoke the client and pass the credentials using some API from the web page when user clicks on a link. Is this feasible? Any pointers to client side APIs (if exists) would also be useful.

Thanks

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

Re: Ability to programmatically authenticate openvpn client

Post by janjust » Mon Apr 22, 2013 3:20 pm

use the management API for this; the latest openvpn client for windows uses it, and so does NetworkManager; grab the sources for either to find out how they did it.

ovpnvd99
OpenVpn Newbie
Posts: 2
Joined: Mon Apr 22, 2013 2:51 pm

Re: Ability to programmatically authenticate openvpn client

Post by ovpnvd99 » Tue Apr 23, 2013 2:58 pm

Thank you. This was very helpful.

Post Reply