Comment 14 for bug 207723

Revision history for this message
Qi Liu (colinl-cmbn) wrote :

I have the same problem here. But I think I know why this is happening, at least in my case.

Here is a part of the log produced by the Evolution:

> GET /exchange HTTP/1.1
> Soup-Debug-Timestamp: 1210055753
> Soup-Debug: SoupSessionSync 1 (0x8b4dc10), SoupMessage 2 (0x846e418), SoupSocket 2 (0x8e12940)
> Host: mail.company.com
> Authorization: NTLM TlRMTVNTUAABAAAABoIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAA
> User-Agent: Evolution/2.22.1

< HTTP/1.1 302 Moved Temporarily
< Soup-Debug-Timestamp: 1210055754
< Soup-Debug: SoupMessage 2 (0x846e418)
< Location: https://mail.company.com/exchweb/bin/auth/owalogon.asp?url=https://mail.company.com/exchange&reason=0&replaceCurrent=1
< Set-Cookie: sessionid=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
< Set-Cookie: cadata=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
< Connection: close
< Content-Length: 0

> GET /exchweb/bin/auth/owalogon.asp?url=https://mail.company.com/exchange&reason=0&replaceCurrent=1 HTTP/1.1
> Soup-Debug-Timestamp: 1210055755
> Soup-Debug: SoupSessionSync 1 (0x8b4dc10), SoupMessage 2 (0x846e418), SoupSocket 3 (0x8e12b38), restarted
> Host: mail.company.com
> User-Agent: Evolution/2.22.1
> Authorization: NTLM TlRMTVNTUAABAAAABoIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAA

< HTTP/1.1 200 OK
< Soup-Debug-Timestamp: 1210055757
< Soup-Debug: SoupMessage 2 (0x846e418)
< Cache-Control: no-cache
< Pragma: no-cache
< Content-Length: 8349
< Content-Type: text/html; charset=utf-8
< Expires: -1
< Server: Microsoft-IIS/6.0
< X-Powered-By: ASP.NET
< X-AspNet-Version: 2.0.50727
< X-OWA-Version: 8.1.240.5
< Date: Tue, 06 May 2008 06:37:17 GMT
** (evolution:19205): WARNING **: Invalid uri 'owaauth.dll'

(evolution:19205): libsoup-CRITICAL **: soup_message_set_request: assertion `SOUP_IS_MESSAGE (msg)' failed
e-data-server-ui-Message: Key file does not have key 'exchange:__qliu;<email address hidden>com_' in group 'Passwords-Exchange'

From this, I can see evolution got an invalid URI 'owaauth.dll'. Such URI is the used as the POST URI of a form-based authentication of OWA. Here is the HTML code from the OWA authentication page:

<form action="owaauth.dll" method="POST" name="logonForm" autocomplete="off">
<input type="hidden" name="destination" value="https://mail.company.com/exchange">
<input type="hidden" name="flags" value="0">
<input type="hidden" name="forcedownlevel" value="0">

Our company uses a customized HTML page as the form-based authentication page. Here, the action URI is a relative URI containing only "owaauth.dll". It is relative to "https://mail.company.com/exchweb/bin/auth/owalogon.asp?url=https://mail.company.com/exchange&reason=0&replaceCurrent=1". So the actual absolute URI should be "https://mail.company.com/exchweb/bin/auth/owaauth.dll". Firefox and Internet Explorer both have the correct behavior, while evolution-exchange connector thought "owaauth.dll" is an absolute URI (though in most cases, it is an absolute URI like "/exchweb/bin/auth/owaauth.dll").

The fix should be parsing the POST URIs per standard like Firefox and IE do.