Hello Neil,

In NM 0.8.x, NetworkManagerUserSettings does not export the add/delete 
functionality due to security reasons, as then any application in the user's 
session could read/write/delete network settings. But 
NetworkManagerSystemSettings provides those functionality. So if you are in a 
user session then adding/deleting a connection using 
NetworkManagerSystemSettings will ask the root password.

Regards,
Jos Collin
________________________________________
From: [email protected] 
[[email protected]] On Behalf Of Neil Durant 
[[email protected]]
Sent: Wednesday, May 18, 2011 8:34 PM
To: [email protected]
Subject: Adding connections via D-Bus is not (yet) supported

I'm trying to add a new connection to NetworkManager using d-bus so that my 
embedded Linux system can connect to a wireless network to which it receives 
credentials.  I've been trying to use AddConnection on the 
org.freedesktop.NetworkManagerSettings interface of 
/org/freedesktop/NetworkManagerSettings, on the 
org.freedesktop.NetworkManagerUserSettings bus, but I get the following error:

org.freedesktop.DBus.GLib.UnmappedError.Org.freedesktop.NetworkManagerSettings.AddFailed.Code0:
 add_connection: adding connections via D-Bus is not (yet) supported

I'm using NetworkManager 0.8.4 on Ubuntu 11.04.

Can anyone shed any light on this error?  Does a more recent NetworkManager 
support this, or am I'm trying to go about this the wrong way?

Neil
--
Neil Durant
[email protected]<mailto:[email protected]>

::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------
_______________________________________________
networkmanager-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Reply via email to