Bug 156939 - Gaim do not use stored passwords
Summary: Gaim do not use stored passwords
Status: RESOLVED FIXED
: 150099 (view as bug list)
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: GNOME (show other bugs)
Version: Beta 7
Hardware: Other Other
: P5 - None : Critical (vote)
Target Milestone: ---
Assignee: Dan Winship
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-10 08:49 UTC by Holger Sickenberg
Modified: 2006-05-09 08:01 UTC (History)
3 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Sickenberg 2006-03-10 08:49:32 UTC
Starting gaim I will be asked for passwords every time.

I stored the passwords and they are stored within the file .gaimrc, but gaim do not use it.
Comment 1 Joerg Reuter 2006-03-10 09:13:23 UTC
Indeed. This is critical, as it renders GAIM quite useless if you have a lot of accounts on several networks or with several identities (in my case, it pops up seven password request windows all over the desktop...)
Comment 2 Stephan Barth 2006-03-10 10:10:13 UTC
I compiled the latest gaim (1.5.0b2) downloaded yesterday and the problem is not there anymore
Comment 3 Stanislav Brabec 2006-03-10 11:49:33 UTC
To the original reporter: Is it really beta7.

Gaim has a patches to store its passwords in gnome-keyring. Do you have installed it? Does installing of it help?
Comment 4 Joerg Reuter 2006-03-10 13:34:00 UTC
Yes, that's really Beta7 (in my case an update from 10.0) No, I haven't installed gnome-keyring. In fact, I don't run the Gnome desktop. So, if Gaim is supposed to use gnome-keyring, either let it complain about missing gnome-keyring with an info box, or (better) let it fall back to its upstream behaviour.
Comment 5 JP Rosevear 2006-03-10 14:02:27 UTC
Gaim requires gnome-keyring already:

jpr@zugzwang:~/Desktop> rpm -q --requires gaim | grep key
libgnome-keyring.so.0

So it should be installed.

HPJ, what if its not running?
Comment 6 Hans Petter Jansson 2006-03-10 22:39:27 UTC
In GNOME, gnome-keyring gets started by gnome-session. I could write a patch to libgnome-keyring to start it up if it isn't running, I guess.
Comment 7 Holger Sickenberg 2006-03-13 08:34:51 UTC
I don't think that would be the right way (starting applications if you need it or not). I second Jörgs suggestion to have a fallback to old behavior if Gnome desktop is not running.
Comment 8 Dan Winship 2006-03-16 22:28:05 UTC
OK, I think the problem is that in converting from the old .gaimrc password code to the new gnome-keyring-manager code, the "Remember password" setting got turned off for all of the accounts. Holger, if you open the GAIM Accounts window, select an account, and click "Modify", is the checkbox checked? If not, just check it, and then it should remember the password in the future.
Comment 9 Holger Sickenberg 2006-03-17 07:23:57 UTC
I tried that several times. At last with Beta 8. Gaim will not keep the password, no matter if I check the box or not. When restarting Gaim the "remeber password" box is never checked.
Comment 10 Timo Hoenig 2006-03-17 09:48:50 UTC
Now this is getting interesting.

If we want users to be able to run applications like GAIM or nm-applet or whatever $APPLICATION using gnome-keyring-daemon in order to store secrets we run into this bug.

As long as g-k-d is not launched with the X session, GNOME_KEYRING_SOCKET will not be set and, hence, the applications will fail to identify a running instance of g-k-d.

An insane workaround is launching g-k-d and setting the environment variable upon start of each application using g-k-d if GNOME_KEYRING_SOCKET is not set. (This is actually what I have done for KNetworkManager to use the g-k-d, see bug #156366)

The correct solution would be launching g-k-d with the X session -- the same what we do for GNOME.  But how can we know whether a user actually makes use of it? e.g. does he/she use any of the depending applications at all?

JFYI, Holger was able to use GAIM + password storage after running

  $ export `gnome-keyring-daemon`
  $ gaim
Comment 11 Timo Hoenig 2006-03-17 09:53:59 UTC
Comment #10 refers to running applications depending on g-k-d in all X sessions (KDE, *box, ...) but GNOME.
Comment 12 Dan Winship 2006-03-20 17:33:58 UTC
(hpj: JP said I should take this because you have too many bugs assigned to you.)
Comment 13 Dan Winship 2006-03-20 19:44:34 UTC
fixed in autobuild; now if gnome-keyring-manager isn't running, it will just
fall back to the old gaim password storage code
Comment 14 Dan Winship 2006-03-20 19:44:47 UTC
oops, fixed
Comment 15 JP Rosevear 2006-03-23 14:49:17 UTC
*** Bug 150099 has been marked as a duplicate of this bug. ***
Comment 16 Holger Sickenberg 2006-05-02 13:41:24 UTC
The problem is: you should not just test if gnome-keyring-manager is installed but if it's running.
Comment 17 Dan Winship 2006-05-02 14:18:52 UTC
Holger: that's what we do. If gnome-keyring-manager is running, we use it. If not, we use gaim's old system. Are you seeing some problem?

Oh, if you switch back and forth between GNOME and KDE, you'll run into problems, because the gnome-keyring code removes the passwords from gaim's config files (so they're not stored unencrypted there). So every time you log into GNOME, you'd need to re-enter your password next time you log into KDE. Is that what you're seeing? Or something else?
Comment 18 Holger Sickenberg 2006-05-09 08:01:06 UTC
Sorry, my mistake. Finally I found all buttons I had to check to keep the password.
I'm neither using Gnome nor KDE, just Openbox.