Page 1 of 1

Ability to programmatically authenticate openvpn client

Posted: Mon Apr 22, 2013 3:05 pm
by ovpnvd99
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

Re: Ability to programmatically authenticate openvpn client

Posted: Mon Apr 22, 2013 3:20 pm
by janjust
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.

Re: Ability to programmatically authenticate openvpn client

Posted: Tue Apr 23, 2013 2:58 pm
by ovpnvd99
Thank you. This was very helpful.