Re: Prompt the user for login credentials?



On Wed, 2010-02-24 at 14:43 -0500, David Wagner wrote:
> I am using NetworkManager 0.7.1 to connect to a wireless network
> secured with 802.1x and TTLS authentication.  Everything is working
> great, but is it possible to prompt the user for their logon
> credentials when establishing the connection? 
> 
> 
> My situation is that this laptop will be loaned out to many different
> users and they will login to linux with a single shared account.  I
> would like to pre-configure the wireless network setup, but have the
> users each use their own network account to authenticate.  As far as I
> have been able to find, the only way I can save the configuration for
> this wireless network is to enter a username and password that are
> stored in gconf and the gnome keyring.  Is it possible to not use a
> stored username and password and have them supplied by the user every
> time a connection is established?

I don't believe that this is possible directly with 0.7.1, but you could
simulate it with a bit of scriptery.  Basically, you want to clean out
all the "secrets" that NM stores each time the connection is dropped.
NetowrkManager sends out D-Bus signals when this happens, so you could
create a simply Python service that listens for when your network
connection starts, and then when it gets dropped, it cleans out the user
ID and the keyring secrets.

0.8.1 will have some support for One-Time-Pad tokens (like RSA SecureID)
to make the OTP password entry easier, but I hadn't yet thought about
cleaning all credentials.  That's a good enhancement request.

Dan




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