Re: file location of VPN config



Em Saturday 28 July 2012, Michael Irons escreveu:

> Thanks again for the quick reply, Lamarque.

> Basically, I'm trying to get round the problem you highlighted here

> https://bugs.kde.org/show_bug.cgi?id=295468.

>

> Since there's no way of doing it through nm-applet or the plasmoid,

> I'm trying to edit the connection file manually, then start it through

> nmcli.

>

> For the user to update the file in

> /etc/NetworkManager/system-connections/, I have to chmod it. That

> works, but nmcli doesn't pickup the changes when it dsplays the

> connection dialog.

> After a network-manager restart, the connection disappears.

>

> It seems this happens when the file permissions change.

>

> Is there a better method of changing the 'Xauth username' through a script?

 

Some months ago I created a patch to change VPN's settings from Plasma NM's secret agent. It does not work properly because when the secret agent is called the connection is already in progress and NetworkManager still uses the old username and group even though the new username and group were correctly saved, to the connection fails. On a second connect attempt the new username and group correctly appear in the password dialog. So basically that depends on NetworkManager, if NetworkManager allowed secret agents to change the settings of an ongoing connect attempt (like it allows for the secrets of that connection) we can implement the proper support in NetworkManager's clients (Plasma NM, nm-applet, etc). I think the same problem will happen with any script you try to create (it will only work on the second connect attempt, the first attempt will always use the old username).

> Cheers

>

> Mike

>

> On 28 July 2012 03:25, Lamarque V. Souza <lamarque kde org> wrote:

> > Em Friday 27 July 2012, Michael Irons escreveu:

> >> Can anyone tell me where network manager stores the username, for

> >>

> >> saved VPN/vpnc connections?

> >>

> >>

> >>

> >> ~/.kde/share/apps/networkmanagement/secrets/ - contains a guid file

> >>

> >> with the group password and user password, but I need to be able to

> >>

> >> amend the stored username from a script.

> >

> > The username is stored in

> > /etc/NetworkManager/system-connections/<connection name>

> >

> >

> >

> > OBS: ~/.kde/share/apps/networkmanagement/secrets/ is used only when you

> > set Plasma NM to store secrets in plain text, which is not the default

> > configuration.

> >

> >

> >

> > --

> >

> > Lamarque V. Souza

> >

> > KDE's Network Management maintainer

> >

> > http://planetkde.org/pt-br

>

> _______________________________________________

> networkmanager-list mailing list

> networkmanager-list gnome org

> https://mail.gnome.org/mailman/listinfo/networkmanager-list

 

 

--

Lamarque V. Souza

KDE's Network Management maintainer

http://planetkde.org/pt-br



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