Re: Examples for org.freedesktop.NetworkManagerSettings.Connection.Secrets



On Sun, 2008-06-08 at 11:50 -0500, Christopher Blauvelt wrote:
> I'm trying to make an NM Settings daemon and I'm having trouble
> finding what parameters are passed to GetSecrets and what NM expects
> in return.
> 
> What kind of values are passed as setting_name? Is it the connection
> name 'nifty-wireless' or is it something like '802-11-security'?
> Is hints something along the line of {'key-mgmt', 'wep-tx-keyidx',
> 'wep-key0'}?

NM doesn't actually send hints yet, but it might in the future.
Basically, just return any secrets you have stored for the connection or
ask the user for them and send them back when the user replies.

You can also pass back the entire setting object with updated key/value
pairs, because in cases like LEAP vs. WEP, you cannot distinguish
between the two at connection time, so the user just has to choose.  You
would then push the updated setting dict back to NM, and NM would then
use the right connection method that the user just chose manually.

Dan

> I appreciate any help.  In addition I'd be willing to help document
> the project if you would like the help.  So I'll probably be asking
> several questions in the future.  I've been on IRC (Freenode #nm) all
> weekend but have yet to see a core dev on there.  Do y'all hang out
> during the weekdays?  If so what timezone do you live in so I can try
> and be on when you are.
> 
> Thanks,
> Chris
> _______________________________________________
> 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]