Re: vpnc System-wide settings



Or you can use a script to pre-create the profiles in userland. You can
use gconf dump and reinject it for a clean profile or you can use dbus
(python or bash as you like) to create the new profiles.

The first time, the use will be prompted for the password (if there is).

Personnaly I use gconftool-2 --dump to dump my keys with my VPN / Wifi
networks and next gconftool-2 --load to insert the dump in the gconf user
db.

The advantage of the script loaded in userland, is that you can get the
username and set it in the profiles (and maybe the path of certificate).
The user will only be prompted the fist time to set the password.

But it could be an ugly way.. but it works.

> Ok, I think I have the overall idea... the nm applet wraps user
> connections in order to intercept activation and provides username and
> password. I'm tempted to do something similar to system connections. Good
> idea?
>
> Laurent
> ----- Mail Original -----
> De: "Laurent Goujon" <laurent goujon online fr>
> Ã?: networkmanager-list gnome org
> Envoyé: Vendredi 10 Juillet 2009 18:03:03 GMT +01:00 Amsterdam / Berlin /
> Berne / Rome / Stockholm / Vienne
> Objet: vpnc System-wide settings
>
> Hi,
>
> I'm trying to put in place system-wide settings for vpn(c). The idea is
> that an user has nothing to configure, he just has to check under VPN
> connections and click on one of the available connections. The user should
> just be prompted for (possibly) his username and his password.
>
> So far, I managed to create configuration files and by placing them under
> /etc/NetworkManager/system-connections/ to make them appear. Unfortunately
> I'm unable to make them work. If I don't put Xauth username = <username>
> into the config file, NetworkManager/vpnc manager complains that this
> config setting is lacking (and after some debugging it appears that
> default username is simply NULL), and if I force this settings, it is
> Xauth password which is missing (although I set into the configfile that
> it should be asked to the user). That become problematic since I use rsa
> tokens (so password is different each time).
>
> I suspect that since these are system-wide connections, they shouldn't
> depend of user informations, am i right? Any way to extend system
> configuration to support user interaction? Or a way to quickly import vpn
> configuration into user profile?
>
> Thanks in advance,
>
> Laurent Goujon
>
> System config:
> NetworkManager 0.7.0.99 on RHEL5
> _______________________________________________
> NetworkManager-list mailing list
> NetworkManager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list
> _______________________________________________
> 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]