Connecting to a VPN (vpnc) via DBus
- From: Adrien BUSTANY <madcat mymadcat com>
- To: networkmanager-list gnome org
- Subject: Connecting to a VPN (vpnc) via DBus
- Date: Tue, 11 Dec 2007 10:47:34 +0100
I'd like to write a script for Dispatcher to automatically connect to a
VPN when I connect to some specific wlan. I saw some scripts on the
internet, but they're not up to date with NM 0.7 api.
I saw the org.freedesktop.NetworkManager.VPN.Manager.Connect method, but
I'm not sure what to pass as the arguments. I think the first is weither
to use session or system bus, the second the name of the connection, the
third the device (like wlan0, or its path in NetworkManager/Device ?),
and I've no idea about the last.
Has anyone got a clue about this ?
] [Thread Prev