Bug 913554 - Kerberos auth for MAPI calendar, contacts and notes
Summary: Kerberos auth for MAPI calendar, contacts and notes
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: evolution-mapi
Version: 18
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Matthew Barnes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-21 13:20 UTC by Ludek Finstrle
Modified: 2013-02-26 09:45 UTC (History)
2 users (show)

Fixed In Version: evolution-mapi-3.6.4
Clone Of:
Environment:
Last Closed: 2013-02-26 09:45:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ludek Finstrle 2013-02-21 13:20:23 UTC
Description of problem:
I have configured one account in evolution with MAPI (exchange 2010) backend using kerberos authentication.
When evolutioon-calendar-factory or evolution-source-registry starts it asks me for password. I see no MAPI sources for calendars, contacts, tasks, notes if I keep empty or fake pwd in evolution.

Kerberos setup is correct as I can work with mails (also send/receive).


Version-Release number of selected component (if applicable):
evolution-3.6.3-2.fc18.x86_64
evolution-mapi-3.6.3-2.1.fc18.x86_64
evolution-data-server-3.6.3-2.fc18.x86_64
openchange-1.0-12.fc18.x86_64
samba-common-4.0.3-1.fc18.x86_64
samba-libs-4.0.3-1.fc18.x86_64


How reproducible:
Setup kerberos environment and create evolution MAPI account using kerberos authentication. pkill -f evolution


Steps to Reproduce:
1. setup kerberos environment
2. setup evolution with MAPI account using kerberos authentication
3. pkill -f evolution
4. start evolution
5. enter empty/fake password
6. try to see MAPI calendar/contacs/tasks/notes
  
Actual results:
No MAPI sources except mail.


Expected results:
See the MAPI sources the same way as with entered right password.


Additional info:
I saw https://bugzilla.redhat.com/show_bug.cgi?id=834798 but evolution doesn't use gconf anymore and I'm unable to find cal sources in dconf.
I see only one MAPI source on filesystem:
$ ls -la .config/evolution/sources/
birthdays.source                   1358954760.4821.0
local.source                       1358954760.4821.2
system-calendar.source             1358954760.4821.5
vfolder.source                     1358954761.4821.17

Comment 1 Milan Crha 2013-02-22 07:35:51 UTC
Hmm, the kerberos auth might be used more or less transparently, across all parts of evolution/evolution-data-server. Could you try, when you've active ticket, to close evolution and all other evolution processes, especially evolution-calendar-factory, evolution-addressbook-factory and evolution-source-registry (basically in this order), thus they are restarted and the calendar sources are reopened with the active kerberos ticket?

Comment 2 Ludek Finstrle 2013-02-22 09:16:54 UTC
I did it several times. Each time I removed pwd from gnome vault (or how it's called)+pkill -f evolution I get the prompt for password.

$ ps axf | grep evolution
 1936 ?        Sl     0:01              \_ /usr/libexec/evolution/3.6/evolution-alarm-notify
 2030 ?        SLl    0:02 /usr/libexec/evolution-source-registry
 2074 ?        Sl     0:03 /usr/libexec/evolution-calendar-factory
 2219 ?        Sl     0:03 /usr/libexec/evolution-addressbook-factory

This is what is running here when evolution is stopped.

BTW I obtain krb ticket during login (pam) so the non-exist krb ticket is not the issue for sure.

Comment 3 Milan Crha 2013-02-22 10:14:24 UTC
(In reply to comment #2)
> BTW I obtain krb ticket during login (pam) so the non-exist krb ticket is
> not the issue for sure.

It depends on service run order after start/login. The evolution-alarm-notify is autostarted in a session, which can run all the processes you showed as running when evolution is stopped. The evolution-source-registry deals with passwords, and if the calendar factory asks for a kerberos ticket before you entered the password during login (this all is happening during login), then it can skip kerberos auth. Nonetheless, as you said you see the same even after kill of the calendar factory when you've the ticker ready, then this is something else.

Comment 4 Milan Crha 2013-02-22 10:20:19 UTC
(In reply to comment #0)
> I see only one MAPI source on filesystem:
> $ ls -la .config/evolution/sources/
> birthdays.source                   1358954760.4821.0
> local.source                       1358954760.4821.2
> system-calendar.source             1358954760.4821.5
> vfolder.source                     1358954761.4821.17

could you check which of these sources contain "Kerberos" (quotes for clarity only), and whether it's 'true'?

Comment 5 Ludek Finstrle 2013-02-22 13:42:18 UTC
$ grep Kerberos *
1358954760.4821.2:Kerberos=true
$ grep ackend *
birthdays.source:BackendName=contacts
local.source:BackendName=maildir
local.source:[Maildir Backend]
system-calendar.source:BackendName=local
system-memo-list.source:BackendName=local
system-task-list.source:BackendName=local
vfolder.source:BackendName=vfolder
vfolder.source:[Vfolder Backend]
1358954760.4821.2:BackendName=mapi
1358954760.4821.2:[Mapi Backend]
1358954760.4821.5:BackendName=mapi
1358954761.4821.17:BackendName=mapi

Comment 6 Ludek Finstrle 2013-02-22 13:47:28 UTC
Maybe some relevant info:

$ grep Parent 135895476*
1358954760.4821.0:Parent=1358954760.4821.2@hostname
1358954760.4821.2:Parent=
1358954760.4821.5:Parent=1358954760.4821.2@hostname
1358954761.4821.17:Parent=1358954760.4821.2@hostname

1358954760.4821.2:

[Data Source]
DisplayName=Company
Enabled=true
Parent=

[Offline]
StaySynchronized=true

[Authentication]
Host=exchange.domain.local
Method=none
Port=0
User=account

[Collection]
BackendName=mapi
CalendarEnabled=true
ContactsEnabled=true
Identity=account
MailEnabled=true

[Security]
Method=none

[Mapi Backend]
FilterInbox=true
CheckAll=true
Domain=DOMAIN
FilterJunk=true
FilterJunkInbox=false
Kerberos=true
Profile=account@DOMAIN.local
Realm=DOMAIN.LOCAL
ListenNotifications=true

Comment 7 Milan Crha 2013-02-25 17:29:13 UTC
Could you try with this [1] test package, please? I found out that the evolution-source-registry part wasn't aware of Kerberos, but the other parts like book and calendar backends know about it. Please make sure you'll have the latest samba too.

[1] http://koji.fedoraproject.org/koji/taskinfo?taskID=5054372

Comment 8 Milan Crha 2013-02-25 17:33:51 UTC
I forgot to add, maybe a restart of evolution-source-registry will be required, and it can behave differently depending whether the kerberos ticket is available or not (it doesn't ask me for a ticket when I do not have it, but it can be an issue in my local setup, rather than in evolution-mapi itself).

Comment 9 Ludek Finstrle 2013-02-26 07:30:51 UTC
Thank you very much again. You find the cause and fixi it.
I have working evolution-mapi with Kerberos (and no passwd has to be filled) also for calendar and others.

So you can close the ticket as resolved.

Comment 10 Milan Crha 2013-02-26 09:45:03 UTC
Thanks for the confirmation. I committed the change for evolution-mapi-3.6.4. I think there are probably some corner cases, like when the ticket is expired and such, but hopefully recoverable issue.


Note You need to log in before you can comment on or make changes to this bug.