Re: OpenVPN Auto-connect
- From: Michael Stapelberg <michael+nm stapelberg de>
- To: Jirka Klimes <jklimes redhat com>, networkmanager-list gnome org
- Cc: Shelbias Cooper <shelbias cooper gmail com>
- Subject: Re: OpenVPN Auto-connect
- Date: Thu, 02 Aug 2012 19:09:52 +0200
Hi Jirka,
Quoting Jirka Klimes (2012-07-25 16:30:46)
> In the meantime you could use a dispatcher script that will connect you to VPN
> when a base (wired, wireless,...) connection activates. You can use 'nmcli con
> up id "name of yor VPN connection"' in the dispatcher script.
I tried doing that, but can’t get it to work:
When using "nmcli con up id vpn-extern" as root (and the dispatcher
scripts are started as root by default) I get "Error: Connection
activation failed: no valid VPN secrets.". I use an openconnect-based
VPN, and in syslog I see "No agents were available for this request",
because it cannot prompt root to enter anything.
When using "su michael -c /bin/sh -c 'nmcli con up id vpn-extern", I get
"Error: Connection activation failed: Not authorized to control
networking."
How can I execute this command under my normal username? I tried giving
it the appropriate DBUS_SESSION_BUS_ADDRESS environment variable, but
that didn’t help either.
Thanks in advance,
Best regards,
Michael
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]