summaryrefslogtreecommitdiff
path: root/vpn/plugins
AgeCommit message (Collapse)AuthorFilesLines
2013-04-03openvpn: Update domain name if received from OpenVPN serverJukka Rissanen1-0/+30
2013-03-27openvpn: Set the nameservers in correct orderJukka Rissanen1-17/+71
The nameservers that we get from OpenVPN server can be received in any order. Make sure that we sort them in correct order before sending them to connmand.
2013-02-19pptp: Set the username/password before starting daemonJukka Rissanen1-4/+4
This is required in order to avoid free memory access that is happening if we call vpn_provider_set_string() with same string that is already in the settings db.
2013-02-19l2tp: Set the username/password before starting daemonJukka Rissanen1-4/+4
This is required in order to avoid free memory access that is happening if we call vpn_provider_set_string() with same string that is already in the settings db.
2013-02-19vpn-provider: Avoid printing password to log filesJukka Rissanen2-2/+4
Add a variant to vpn_provider_set_string() that does not print sensitive data like password in clear text to log files.
2013-02-19l2tp: Clear password if authentication failsJukka Rissanen1-1/+7
This allows plugin to query agent so that user can give correct password.
2013-02-19pptp: Clear password if authentication failsJukka Rissanen1-1/+7
This allows plugin to query agent so that user can give new password. Fixes BMC#25963
2013-02-19pptp: Use PPPD prefix for pppd specific optionsJukka Rissanen1-18/+44
For backward compatibility purposes, support also the PPTP prefix for PPPD options.
2013-02-19l2tp: Use PPPD prefix for pppd specific optionsJukka Rissanen1-21/+47
For backward compatibility purposes, support also the L2TP prefix for PPPD options.
2013-02-19l2tp: Add rx and tx bps pppd optionsJukka Rissanen1-0/+2
2013-02-19l2tp: Fixed the nodeflate pppd option nameJukka Rissanen1-1/+1
2012-12-14vpn-plugin: Send proper response to caller and connect if neededPatrik Flykt1-11/+30
Send a proper response to the caller and attempt to connect if the provider data exists but is not connected.
2012-11-30pptp: Header file was missingJukka Rissanen1-0/+1
2012-11-30l2tp: Header file was missingJukka Rissanen1-0/+1
2012-11-30pptp: Clear password when disconnectingJukka Rissanen1-0/+6
2012-11-30l2tp: Clear password when disconnectingJukka Rissanen1-0/+6
2012-11-30vpn: Driver disconnect needs provider informationJukka Rissanen2-2/+2
The provider pointer needs to be passed to VPN driver when disconnecting. Otherwise we cannot find the correct provider that is being disconnected.
2012-11-30pptp: Do not save the passwordJukka Rissanen1-6/+0
2012-11-30l2tp: Do not save the passwordJukka Rissanen1-6/+0
2012-11-30pptp: Ask username and password from agentJukka Rissanen1-8/+242
2012-11-30l2tp: Ask username and password from agentJukka Rissanen1-12/+236
2012-11-30openconnect: Add support for --no-cert-check client optionJukka Rissanen1-1/+51
2012-11-30openconnect: Domain pointer was used incorrectlyJukka Rissanen1-4/+8
We must allocate the domain name from the heap and not point to it directly because the dbus library will deallocate it and we will have invalid memory access.
2012-11-30openconnect: Add asking cookie from agentJukka Rissanen1-14/+217
It is possible to ask the cookie from agent for OpenConnect VPN client. The agent should connect to VPN gateway, get the HTML page, show the page in window or parse the HTML, then allow user to feed the user id and passphrase and post the result. The server will then return cookie to agent which should pass the cookie to openconnect plugin in connman-vpnd daemon.
2012-11-30vpn: Make VPN plugin connection function asyncJukka Rissanen1-1/+1
This is needed as we want to ask user the passwords etc.
2012-11-30vpn: Add initial support for async connectJukka Rissanen7-34/+80
Needed for agent VPN support.
2012-11-23openvpn: Set default options if user has not supplied a config fileJukka Rissanen1-11/+17
If the user is using config file option, then do not set the optional default options. All the mandatory options needed for connman and openvpn interaction are still set in command line.
2012-11-23openvpn: Allow configuration via user supplied config fileJukka Rissanen1-0/+1
Fixes BMC#25866
2012-11-23openvpn: Remove obsolete --tls-client optionJukka Rissanen1-1/+0
The --client option activates the --tls-client option so we can remove the useless one.
2012-11-23vpn: Go to failure state if vpn information cannot be foundJukka Rissanen1-2/+12
2012-11-23vpn-plugin: Set state correctly if vpn client process cannot be startedJukka Rissanen1-0/+2
2012-11-23vpnd: Make sure provider is taken to ready stateJukka Rissanen1-2/+17
If the connman_inet_ifup() says the interface is already UP, then it is possible that we might not get a call to vpn_newlink(). That would be really bad as the provider would then never go to ready state. So in this case we manually call vpn_newlink() to take the interface UP. If the newlink was called before our call, then our manual call will be ignored.
2012-11-23pptp: Remember the connection passwordJukka Rissanen1-0/+7
2012-11-23l2tp: Remember the connection passwordJukka Rissanen1-0/+7
2012-11-23vpn: New vpn daemon that handles vpn connections and clientsJukka Rissanen7-0/+2425