Re: Is there a way to get nm-applet to prompt for network security credentials through dbus?





On Wed, Feb 24, 2010 at 4:25 AM, Marc Herbert <Marc Herbert gmail com> wrote:
Greg Suarez a écrit :
> I'm trying to get NetworkManager to connect to a wireless AP through the
> d-bus interface.  The AP requires security credentials (i.e. WPA
> password), is there a way I
> can communicate to the nm-applet to prompt the user for the
> information?

I am not 100% sure what you want here but any time you start GNOME's
nm-connection-editor it will prompt the user to configure anything,
including wireless credentials.

> So all I have to do is tell the nm-applet to get the
> credentials which will create a connection and I can tell NetworkManager
> to use the connection provided by the nm-applet.

I think yes.

If this wireless connection is the only one configured and available
then you do not even need to direct NM to it; it should automatically
fallback to the only one available.


> Or am I stuck having to write my own app?

Which would do what?


Sorry, I should've explained that I'm writing an application and I'm interfacing with NetworkManager through dbus.
I want my application to get the list of wireless networks from NetworkManager and allow the user to select it and
then tell NetworkManager to connect to the network.  What I was hoping I could do was to somehow tell nm-applet,
from my application, to prompt the user for security credentials.  Then I can tell NetworkManager to use the new connection.
 


_______________________________________________
NetworkManager-list mailing list
NetworkManager-list gnome org
http://mail.gnome.org/mailman/listinfo/networkmanager-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]