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 273869 - Connector doesn't work with certificate-based-only access to OWA
Connector doesn't work with certificate-based-only access to OWA
Status: RESOLVED WONTFIX
Product: Evolution Exchange
Classification: Deprecated
Component: Connector
3.2.x
Other All
: Normal enhancement
: ---
Assigned To: jacob berkman
Ximian Connector QA
gnome[unmaintained]
: 338461 431376 431379 (view as bug list)
Depends on: 334021
Blocks:
 
 
Reported: 2005-03-19 10:42 UTC by Pavel Urban
Modified: 2013-07-23 14:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
e-d-s cert auth (40.73 KB, patch)
2007-04-19 15:35 UTC, jacob berkman
needs-work Details | Review
connector cert auth (45.47 KB, patch)
2007-04-19 15:35 UTC, jacob berkman
needs-work Details | Review
new patch against trunk (33.57 KB, patch)
2007-05-31 18:38 UTC, jacob berkman
reviewed Details | Review
update to trunk and fix a deadlock (39.51 KB, patch)
2007-05-31 18:39 UTC, jacob berkman
none Details | Review
forgot to include two new files (45.63 KB, patch)
2007-05-31 18:47 UTC, jacob berkman
reviewed Details | Review
new e-d-s patch for 1.11.x (35.62 KB, patch)
2007-08-17 19:27 UTC, jacob berkman
none Details | Review
new evo-exchange patch for 2.11.6.1 (49.37 KB, patch)
2007-08-17 19:28 UTC, jacob berkman
none Details | Review
patch for evo 2.11.6.1 (502 bytes, patch)
2007-08-17 19:29 UTC, jacob berkman
none Details | Review

Description Pavel Urban 2005-03-19 10:42:08 UTC
I'd like to be able to connect to Exchange https using certificate. Our
admins recently disabled a possibility to connect without one and I'm
therefore unable to use Evolution anymore. Right now I can see that
Evolution/Connector tries to fetch mails, but isn't allowed access. I'm
able to connect to OWA with Mozilla when I have a proper certificate installed.
Comment 1 Sushma Rai 2006-03-08 06:38:35 UTC
Too late for 2.6
Comment 2 Dan Winship 2006-03-09 13:45:14 UTC
Most of the work for this should probably be done in libsoup, and then
connector can just provide the UI and call the right libsoup methods.
Comment 3 jacob berkman 2007-04-19 15:34:21 UTC
*** Bug 431376 has been marked as a duplicate of this bug. ***
Comment 4 jacob berkman 2007-04-19 15:34:31 UTC
*** Bug 431379 has been marked as a duplicate of this bug. ***
Comment 5 jacob berkman 2007-04-19 15:35:07 UTC
Created attachment 86640 [details] [review]
e-d-s cert auth
Comment 6 jacob berkman 2007-04-19 15:35:39 UTC
Created attachment 86641 [details] [review]
connector cert auth
Comment 7 jacob berkman 2007-04-19 15:38:30 UTC
copying comments from other bugs here (i thought this bug existed, but searching for it didn't find it):

> we've added support to soup to authenticate using ssl certs in bug 334021.
> 
> these patches attempt to add this to evolution-data-server and the conncetor.  
> they use an additional bonobody interface and objects supplied by a small library i made
> called gnome-certauth:
> 
> http://off.net/~jacob/gnome-certauth-0.1.tar.gz
>
> these patches are a little tricky because we are doing the cert stuff via nss.  nss
> doesn't currently support concurrent access via multiple applications, and it
> also may need to prompt the user for a pin, or to accept a certificate.  for
> these reasons, i have punted the nss bits to the client side and marshal them
> over either bonobo or the mail stub interface.
> 
> it seems to work ok, but i am up for some discussion if maybe this isn't the
> best approach.
>
> I know these patches have some rough edges; they don't use HAVE_GNOME_CERTAUTH
> everywhere, they don't check in configure for the new soup, and they have some
> leftover printfs and such, but I was interested in getting some early feedback
> on the implementation.
Comment 8 Veerapuram Varadhan 2007-05-24 20:06:23 UTC
E-D-S patch seems to be from a downstream code (OpenSuSE 10.2).  Please attach patches against SVN Head.  Also, disable the f_printf / g_warning and other console messages.
Comment 9 jacob berkman 2007-05-31 18:38:12 UTC
Created attachment 89124 [details] [review]
new patch against trunk
Comment 10 jacob berkman 2007-05-31 18:39:22 UTC
Created attachment 89125 [details] [review]
update to trunk and fix a deadlock

the refresh_folder() bit is now run in its own thread to free up the main thread for processing replies to the certificate request; please take a look at this and see if it's ok.
Comment 11 jacob berkman 2007-05-31 18:47:38 UTC
Created attachment 89126 [details] [review]
forgot to include two new files
Comment 12 jacob berkman 2007-06-05 14:53:38 UTC
There is one other thing this patch does not do:  it should probably ask the user which cert to use, possibly only in the cases where it has more or fewer than one cert signed by an acceptable CA, or if the auth failed the first time.

i'm sure evo has a cert picker widget somewhere; can someone give me a nudge in the right direction?

Thanks.
Comment 13 Veerapuram Varadhan 2007-06-05 15:06:18 UTC
(In reply to comment #12)
> There is one other thing this patch does not do:  it should probably ask the
> user which cert to use, possibly only in the cases where it has more or fewer
> than one cert signed by an acceptable CA, or if the auth failed the first time.
> 
> i'm sure evo has a cert picker widget somewhere; can someone give me a nudge in
> the right direction?
> 
> Thanks.
> 
Edit->Preferences-><Account-to-edit>->Edit->Security Tab

Comment 14 jacob berkman 2007-06-05 15:14:25 UTC
no, more like a dialog that pops up asking the user to pick a cert.

and i'm more interested on where in the code it lives than how to reach it in the UI.

Thanks!
Comment 15 Veerapuram Varadhan 2007-07-14 20:42:36 UTC
Jacob: I am marking the two patches as reviewed and IMHO, the patches have to wait till a non-smartcard system with these patches work seamlessly as before.  
Comment 16 jacob berkman 2007-08-17 19:27:39 UTC
Created attachment 93867 [details] [review]
new e-d-s patch for 1.11.x

this includes a few fixes, for using passwords and other things that have come up lately.
Comment 17 jacob berkman 2007-08-17 19:28:27 UTC
Created attachment 93868 [details] [review]
new evo-exchange patch for 2.11.6.1

password, other fixes
Comment 18 jacob berkman 2007-08-17 19:29:37 UTC
Created attachment 93869 [details] [review]
patch for evo 2.11.6.1

this fixes an infinite recursion, which is obvious when reading the code.  i haven't noticed anything bad specifically from this patch, but i don't know why this code was here in the first pace either
Comment 19 Srinivasa Ragavan 2008-01-13 09:46:22 UTC
The patches are obsolete. OpenSUSE rpms have a better fix. But few more pending work to be done. May be next release.
Comment 20 Bharath Acharya 2008-08-06 08:26:15 UTC
*** Bug 338461 has been marked as a duplicate of this bug. ***
Comment 21 Biscuits McCree 2008-08-23 07:28:28 UTC
The problem is you cannot ADD an account (In reply to comment #13)
> (In reply to comment #12)
> > There is one other thing this patch does not do:  it should probably ask the
> > user which cert to use, possibly only in the cases where it has more or fewer
> > than one cert signed by an acceptable CA, or if the auth failed the first time.
> > 
> > i'm sure evo has a cert picker widget somewhere; can someone give me a nudge in
> > the right direction?
> > 
> > Thanks.
> > 
> Edit->Preferences-><Account-to-edit>->Edit->Security Tab
> 

The whole problem is you cannot ADD such an account because the wizard requires you to click "Authenticate," which of course won't work because you have to specify the certs you want to use for authentication.
Comment 22 Craig Ringer 2009-06-09 05:11:39 UTC
Any activity on this? I'm investigating client cert support right now, and would like to know if there's any faintly usable starting point.
Comment 23 Biscuits McCree 2009-06-10 08:32:20 UTC
I am wondering if fedora 11's "openchange" is another way to achieve this.
Comment 24 André Klapper 2012-01-04 11:08:12 UTC
Note that the package "evolution-exchange" is deprecated nowadays. Similar functionality is now provided by "evolution-mapi" and "evolution-ews" packages.

This bug was reported against a version that is now not supported anymore. Could you please check if the problem that you reported here still happens with a recent version of Evolution (like 3.2 or 3.0) by reporting back? Thanks in advance!
Comment 25 Dan Winship 2012-01-04 13:34:01 UTC
The feature still does not exist (at the libsoup level) in 3.2 (which is bug 334021 which this depends on).
Comment 26 André Klapper 2012-01-04 14:16:51 UTC
Ah. Thanks!
Comment 27 André Klapper 2013-07-23 14:29:58 UTC
evolution-exchange only supports the older Microsoft Exchange server versions 2000 and 2003. The last stable release of evolution-exchange was 3.4.4 which took place a year ago.

evolution-exchange is now deprecated and not under active development anymore.

It is unlikely that there will be any further active development.

Closing this report as WONTFIX as part of Bugzilla Housekeeping.

Please feel free to reopen this bug report in the future if anyone takes the responsibility for active development again.

Also feel free to reopen this ticket and change the "Product" field accordingly if the reported issue still happens with a recent version (newer than version 3.6) of one of those Exchange backends that are still supported.
Please see https://help.gnome.org/users/evolution/3.8/exchange-connectors-overview.html for more information on available backends.