Comment 0 for bug 1228154

Revision history for this message
Zoltan Fedor (evk02) wrote :

I'm using evolution-ews to connect to MS Exchange but the problem is that frequently reports "password is incorrect" when in fact I entered the correct password.
I'm saying frequently, which means I need to try 40-50 times to get in once. I don't really get a feel of what is changing when it let's me in. I need to restart Evolution many times and try the password many times and once it just works.

If I connect to https://[server]/EWS/Exchange.asmx directly from the browser, then I have no problem authenticating.

I have tried EWS_DEBUG=2 evolution, but all I see that the SOAP request is sent and I receive "Unauthorized" as a response.

Below are the debug details (I have shortened the SyncState hash in the xml):

The request headers
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header><types:RequestServerVersion xmlns:types="http://schemas.microsoft.com/exchange/services/2006/types" Version="Exchange2007_SP1"/></SOAP-ENV:Header><SOAP-ENV:Body xmlns:messages="http://schemas.microsoft.com/exchange/services/2006/messages"><messages:SyncFolderHierarchy xmlns="http://schemas.microsoft.com/exchange/services/2006/types"><messages:FolderShape><BaseShape>AllProperties</BaseShape></messages:FolderShape><messages:SyncState>H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In6NX+PX/TXoOfjF+w+P9+/d3znePnlwfLC9f3xyb/vJyZO.........</messages:SyncState></messages:SyncFolderHierarchy></SOAP-ENV:Body></SOAP-ENV:Envelope>

> POST /EWS/Exchange.asmx HTTP/1.1
> Soup-Debug-Timestamp: 1379683933
> Soup-Debug: SoupSessionAsync 1 (0x7fa3fcd69de0), ESoapMessage 1 (0x7fa3fc9d6610), SoupSocket 1 (0x7fa3a8008970)
> Host: amers1mail.erf.thomson.com
> User-Agent: Evolution/3.6.1
> Connection: Keep-Alive
> Content-Type: text/xml; charset=utf-8
> Authorization: NTLM TlRMTVNTUAABAAAABYIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAA
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header><types:RequestServerVersion xmlns:types="http://schemas.microsoft.com/exchange/services/2006/types" Version="Exchange2007_SP1"/></SOAP-ENV:Header><SOAP-ENV:Body xmlns:messages="http://schemas.microsoft.com/exchange/services/2006/messages"><messages:SyncFolderHierarchy xmlns="http://schemas.microsoft.com/exchange/services/2006/types"><messages:FolderShape><BaseShape>AllProperties</BaseShape></messages:FolderShape><messages:SyncState>H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In6NX+PX/TXoOfjF+w+P9+/d3znePnlwfLC9f3xyb/vJyZO......</messages:SyncState></messages:SyncFolderHierarchy></SOAP-ENV:Body></SOAP-ENV:Envelope>

< HTTP/1.1 401 Unauthorized
< Soup-Debug-Timestamp: 1379683933
< Soup-Debug: ESoapMessage 1 (0x7fa3fc9d6610)
< Server: Microsoft-IIS/7.5
< Set-Cookie: exchangecookie=f0237b50427446798fed0c798c11621f; expires=Sat, 20-Sep-2014 13:32:13 GMT; path=/; HttpOnly
< X-Powered-By: ASP.NET
< Date: Fri, 20 Sep 2013 13:32:12 GMT
< Content-Length: 0