Since I upgraded Kmail from 16.08.2 to 17.04.2 (openSUSE Leap 42.2 to 42.3) Kmail prompts me for passwords on my IMAP accounts every 10 minutes or so. All of my IMAP accounts are configured to use GSSAPI authentication and don't use a password at all (they use my Kerberos ticket for authentication). I have to click OK with an empty password field in order to make the password window disappear. This is very annoying and it started with openSUSE 42.3, Kmail 17.04.2. It could also be Akonadi or some other component doing the password prompting, I can't really tell. The end result is the same for me.
I can confirm this problem in general. Kmail asks for a password at startup or once I click some folder (not synchronized before) for IMAP account with GSSAPI auth.
Asking for password every 5-10 minutes was fixed in https://bugs.kde.org/show_bug.cgi?id=311456
KDE neon 5.10
KDE Plasma 5.10.5
KDE Frameworks 5.38.0
KDE Applications 17.08.1
I think some more places in code should not check password emptiness for GSSAPI account, for example I can not change subscription right clicking on account in folders tree.
Probably because of this piece of code https://cgit.kde.org/kdepim-runtime.git/tree/resources/imap/imapresourcebase.cpp#n262
I confirm this bug, please fix again kmail with GSSAPI.
The bug still present in kdepim-runtime 17.12.0-0neon+16.04+xenial+build38
It asks password once on startup.
It got better in kmail-17.12.3 (Leap 15.0) but it still occasionally prompts for password despite GSSAPI authentication. I think I got the prompt on startup and sometimes if I click "Check Mail" or so.
It is still valid in 18.08.1
kdepim-runtime/xenial,now 4:18.08.1-0xneon+16.04+xenial+build64 amd64
It is still present in 18.12
This actually happens in kdepim-runtime/resources/imap/sessionpool.cpp. There’s some code to ensure that no password is requested for GSSAPI, but it’s not used in all cases.
Created attachment 123677 [details]
Patch to fix the issue (applies to 19.08.2)
*** Bug 414013 has been marked as a duplicate of this bug. ***
Git commit 163968040f4b9201e47b98e00cf686b2c6f2f97f by Christophe Giboudeaux, on behalf of Martin Herkt.
Committed on 26/11/2019 at 08:33.
Pushed by cgiboudeaux into branch 'release/19.12'.
IMAP resource: do not prompt for password with GSSAPI auth
GSSAPI (e.g. when used with Kerberos) does not use passwords, so make sure the user is not prompted unnecessarily.
Reviewed By: dvratil
Subscribers: dvratil, kde-pim
Differential Revision: https://phabricator.kde.org/D25499
M +12 -7 resources/imap/sessionpool.cpp
M +1 -0 resources/imap/sessionpool.h