This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Store password for accounts in config files without KWallet

Tags: None
(comma "," separated)
Murz
Registered Member
Posts
52
Karma
0
I use KDE Telepathy as coprorate messanger, so I must automate pre-configure all settings, user must enter only one password at login and that's all.
By default, KDE Telepathy store account password in KWallet, but if I disable KWallet - option "Save password" is not available.

I have found config file in ~/.local/share/telepathy/mission-control/accounts.cfg but it miss string for password.

Can I add new string in this file when I place plain-text or encrypted password for account?

I understand that this is unsecured way, but this is better than each user will ask me what it must do after login for going online.
User avatar
david_edmundson
KDE Developer
Posts
359
Karma
1
OS
Enable kwallet.

Set the password to be empty.

It will store passwords without any annoying prompts.
Murz
Registered Member
Posts
52
Karma
0
Thanks, I already think about this way, but don't find the way hoe to automatically create empty wallet and insert password into KWallet automatically via command line or script. Maybe you can provide some examples how to do this?

Main task is to automatically create fully configured Jabber accoont in KDE Telepathy when creating user, so I know Jabber login and plain text password for user and can run the script with this arguments that do all work.
User avatar
david_edmundson
KDE Developer
Posts
359
Karma
1
OS
Oh, that sounds interesting. Is this a big rollout?

There is a way to do it that bypasses kwallet. You can create an account using mc-tool.
"mc-tool add gabble/jabber MyAccount string:account=foo@bar.com string:password=pa55w0rd"

The backend uses gnome keyring. Obviously in KDE this is bad, so normally we never give the backend the passwords, and store them in kwallet ourselves. Note this will break being able to change the password in the UI in future. I wouldn't really recommend this approach.
jacquelinefrancis
Registered Member
Posts
1
Karma
0
hi as I new so I want to confirm that this wallet can be use by anyone

click this link here now

Last edited by jacquelinefrancis on Mon Apr 28, 2014 2:42 am, edited 1 time in total.
Murz
Registered Member
Posts
52
Karma
0
I solve this problem via creating KWallet with empty password and write password into it via kwalletcli tool, so after this KDE Telepathy get it well and connects without prompting password.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Can you please clarify what you're referring to - the KDE Wallet or the GNOME Keyring?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
david_edmundson
KDE Developer
Posts
359
Karma
1
OS
bcooksley wrote:Can you please clarify what you're referring to - the KDE Wallet or the GNOME Keyring?


We haven't fallen back to gnome keyring since 0.3; almost 2 years ago.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Sorry for not being clear - I was referring to @jacquelinefrancis post.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]