After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 592779 - RFE: authenticate using Kerberos
RFE: authenticate using Kerberos
Status: RESOLVED FIXED
Product: evolution-mapi
Classification: Applications
Component: miscellaneous
0.26.x
Other Linux
: Normal enhancement
: ---
Assigned To: evolution-mapi-maint
evolution-mapi-maint
: 597579 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-08-23 07:17 UTC by David Woodhouse
Modified: 2011-08-10 15:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch 1/3 (3.90 KB, patch)
2011-08-09 10:40 UTC, sean finney
committed Details | Review
patch 2/3 (22.46 KB, patch)
2011-08-09 10:41 UTC, sean finney
committed Details | Review
patch 3/3 (39.12 KB, patch)
2011-08-09 10:43 UTC, sean finney
reviewed Details | Review

Description David Woodhouse 2009-08-23 07:17:04 UTC
I have a Kerberos TGT. Why are you asking for my password?
Comment 1 Akhil Laddha 2009-10-07 04:21:21 UTC
*** Bug 597579 has been marked as a duplicate of this bug. ***
Comment 2 Milan Crha 2010-06-08 14:15:04 UTC
I noticed some tries to use kerberos login in logs while using openchange svn trunk (revision 1889), but I think it's there since OpenChange 0.9 or earlier. 

The only issue with a correct "realm", it seems, though that might be probably fetchable from the server, as I was told it should be the server.domain.ext or something similar for a kerberos login, and also the server should be its name, not IP. But I'm not sure with that.

From a brief looking over samba4 and openchange sources I guess the libmapi uses a default value for krb5, which might be "user kerberos if available", thus please test this with actual evolution-mapi stable (0.30.1+) and openchange 0.9. You can also run evolution like:
   $ MAPI_DEBUG=10 evolution >&evo.log
to see what is samba trying to do (search for "gssapi_krb5" in the log file).

Though as evolution doesn't set the "realm", it would be probably easier to create a new profile for openchangeclient (through mapiprofile), with a realm set, and do something like:
   $ openchangeclient --debuglevel=10 --fetchsummary

I do not have an environment to test this myself, thus I'll appreciate any help from you. Thanks in advance.
Comment 3 Tobias Mueller 2010-07-29 09:07:06 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!
Comment 4 sean finney 2011-07-25 08:09:50 UTC
please re-open, I have a kerberos related patch in the works and this bug seems like a good place to drop it :)
Comment 5 Milan Crha 2011-07-26 11:48:52 UTC
Here you are.
Comment 6 sean finney 2011-08-09 10:40:48 UTC
Created attachment 193473 [details] [review]
patch 1/3

small api tweak used in later patches
Comment 7 sean finney 2011-08-09 10:41:59 UTC
Created attachment 193475 [details] [review]
patch 2/3

The same data gets passed around in various places, this is an attempt to consolodate it, simplifying a number of APIs and making it easier to implement the kerberos changes without adding even more parameters to various functions.
Comment 8 sean finney 2011-08-09 10:43:20 UTC
Created attachment 193476 [details] [review]
patch 3/3

This is the big one.  A considerable amount of review would be a good idea, especially with the asynchronous backend stuff.
Comment 9 Milan Crha 2011-08-10 15:23:20 UTC
Thanks for the patch. The calendar didn't work due to change in ecbm_op_authenticate_user, which had opposite condition. I removed that code completely, because you made sure that the auth-required is not called for kerberos authentications. I also fixed the configuration UI, to show the realm edit, and reordered them slightly, to see that realm has only meaning with Kerberos authentication enabled.

Then some wrapping with parameters, I do not like that, I prefer longer lines, at least till it fits my screen resolution. It's usually better when grepping for something.
Comment 10 Milan Crha 2011-08-10 15:23:48 UTC
Created commit 6e731ab in ema master (3.1.5+)