Bug 51736 - exchange plugin doesn't support all necessary username authentication bits
Summary: exchange plugin doesn't support all necessary username authentication bits
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: exchangeplugin (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Jan-Pascal van Best
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-10 21:46 UTC by Jason Haar
Modified: 2003-05-30 08:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Haar 2002-12-10 21:46:05 UTC
Version:           3.1 rc2 (using KDE 3.0.9)
Compiler:          gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
OS:          Linux (i686) release 2.4.17

I've dealt with the nightmare that is Exchange for some time, so I think I may actually be able to help here!

The problem is that the Exchange plugin assumes the Exchange account has the same name as the username - which isn't  the case here (and  in most places I'd guess). e.g. my username is "domain\jhaar", but my exchange account is available via the OWA interface as "/exchange/Jason_Haar/".

I'd suggest not jumping straight to the "/exchange/Jason_Haar/" URL, but instead do it the long way. Go to "/exchange/", login with the "domain\jhaar" (or "jhaar" - OWA *can* be configured with a default domain - but it isn't by default!!!), and view the returned HTML to find out what their mailbox name is. e.g. when I login to "/exchange/" as "domain\jhaar", 7 lines down is a BASE tag referring to "/exchange/Jason_Haar/" - which you could then use to grab the Calendar.

Another option would be just giving more configuration options? If the Exchange plugin allowed you to enter the domain, username, password and mailbox name, then you could go explicitly to where they tell you to, otherwise you could do the BASE check if the mailbox name is left empty...?

Thanks for the work - I could actually look at dropping Outlook if this works! :-)
Comment 1 Jan-Pascal van Best 2002-12-11 11:29:52 UTC
I'll look into this. Remember we don't use OWA. I tried that, but parsing the HTML is a nightmare. Plus, it can change without notice. Instead, we use the webDAV interface. The confusion occurs because you enable webDAV on the server by enabling OWA. 

We might be able to ask the server via webdav what your mailbox URL is, but I'm afraid we'd have to ask that by referring to your mailbox URL. Otherwise, I'll try the configuration option so you can fill it in yourself.
Comment 2 Jan-Pascal van Best 2002-12-12 09:43:28 UTC
Added support for different mailbox/username combinations in CVS. Jason, could you please test this?
Comment 3 Jan-Pascal van Best 2002-12-16 08:50:17 UTC
Added a button to the plugin configuration dialog that tries to find the mailbox URL automagically. Like Jason suggested, this gets http://mail.company.com/exchange/ with username,password authentication. This returns an HTML response with <base href="mailbox url">. Since it's not foolproof we leave the the possibility for the user to fill in the mailbox URL by hand.
Comment 4 Jan-Pascal van Best 2002-12-19 09:52:18 UTC
Also backported to KDE 3.1 branch
Comment 5 Jan-Pascal van Best 2003-05-30 08:23:48 UTC
Resolution Worksforme should be "FIXED"
Comment 6 Jan-Pascal van Best 2003-05-30 08:24:32 UTC
Just to get the stats right...