<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Matejunkie &#187; launchpad</title>
	<atom:link href="http://www.matejunkie.com/tag/launchpad/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.matejunkie.com</link>
	<description>"Look behind you, a Three-Headed Monkey!"</description>
	<lastBuildDate>Thu, 07 Jan 2010 14:26:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to fix NetworkManager&#8217;s OpenVPN plugin in Ubuntu 9.04</title>
		<link>http://www.matejunkie.com/how-to-fix-networkmanagers-openvpn-plugin-in-ubuntu-904/</link>
		<comments>http://www.matejunkie.com/how-to-fix-networkmanagers-openvpn-plugin-in-ubuntu-904/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 13:07:06 +0000</pubDate>
		<dc:creator>Mike Adolphs</dc:creator>
				<category><![CDATA[Binary Talks]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[launchpad]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network manager]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.matejunkie.com/?p=1139</guid>
		<description><![CDATA[The OpenVPN plugin for Gnome&#8217;s NetworkManager is somewhat broken, at least in various Ubuntu releases. Even with proper configuration it runs into an &#8220;NeedSecrets&#8221; error although the same command with the same configuration from shell via sudo work&#8217;s just fine. But fear not mighty roadwarrior! Here&#8217;s a fix to let the NetworkManager get back to [...]]]></description>
			<content:encoded><![CDATA[<p>The OpenVPN plugin for Gnome&#8217;s NetworkManager is somewhat broken, at least in various Ubuntu releases. Even with proper configuration it runs into an &#8220;NeedSecrets&#8221; error although the same command with the same configuration from shell via sudo work&#8217;s just fine.<br />
But fear not mighty roadwarrior! Here&#8217;s a fix to let the NetworkManager get back to work.</p>
<p>Needless to say that this is just a temporary solution (a fix is in the making), but the only thing you have to do is to add an at_console policy to /etc/dbus-1/system.d/nm-openvpn-service.conf right between the two already existing policies.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;policy</span> <span style="color: #000066;">user</span>=<span style="color: #ff0000;">&quot;at_console&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;allow</span> <span style="color: #000066;">own</span>=<span style="color: #ff0000;">&quot;org.freedesktop.NetworkManager.vpnc&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;allow</span> <span style="color: #000066;">send_destination</span>=<span style="color: #ff0000;">&quot;org.freedesktop.NetworkManager.vpnc&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/policy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Then the file should look like the following:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #00bbdd;">&lt;!DOCTYPE busconfig PUBLIC</span>
<span style="color: #00bbdd;"> &quot;-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN&quot;</span>
<span style="color: #00bbdd;"> &quot;http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd&quot;&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;busconfig<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;policy</span> <span style="color: #000066;">user</span>=<span style="color: #ff0000;">&quot;root&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;allow</span> <span style="color: #000066;">own</span>=<span style="color: #ff0000;">&quot;org.freedesktop.NetworkManager.openvpn&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;allow</span> <span style="color: #000066;">send_destination</span>=<span style="color: #ff0000;">&quot;org.freedesktop.NetworkManager.openvpn&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/policy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;policy</span> <span style="color: #000066;">user</span>=<span style="color: #ff0000;">&quot;at_console&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;allow</span> <span style="color: #000066;">own</span>=<span style="color: #ff0000;">&quot;org.freedesktop.NetworkManager.vpnc&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;allow</span> <span style="color: #000066;">send_destination</span>=<span style="color: #ff0000;">&quot;org.freedesktop.NetworkManager.vpnc&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/policy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;policy</span> <span style="color: #000066;">context</span>=<span style="color: #ff0000;">&quot;default&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;deny</span> <span style="color: #000066;">own</span>=<span style="color: #ff0000;">&quot;org.freedesktop.NetworkManager.openvpn&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;deny</span> <span style="color: #000066;">send_destination</span>=<span style="color: #ff0000;">&quot;org.freedesktop.NetworkManager.openvpn&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/policy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/busconfig<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Afterwards simply restart the NetworkManager via &#8220;sudo /etc/init.d/NetworkManager restart&#8221; and it&#8217;ll work. For Solutions for other VPN technologies you may also consider <a href="https://bugs.launchpad.net/ubuntu/+source/network-manager-vpnc/+bug/360818" title="Launchpad - NetworkManager vpn plugin bug" title="_blank">Ubuntu&#8217;s Launchpad</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matejunkie.com/how-to-fix-networkmanagers-openvpn-plugin-in-ubuntu-904/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
