Re: [Evolution] evolution ews cannot follow our autodiscovery



On Tue, 2019-07-02 at 08:39 +0200, Milan Crha via evolution-list wrote:
CAUTION: This email originated from outside of the organization. Do not click links or open attachments 
unless you recognize the sender and know the content is safe.


On Mon, 2019-07-01 at 16:35 +0000, Joakim Tjernlund via evolution-list
wrote:
Any idea why?

        Hi,
not really, as it can be a server configuration thing too. You can try
to run evolution from a terminal with EWS debugging on:

   $ EWS_DEBUG=2 evolution

then open the EWS account Properties (or add a new user) and when you
click "Fetch URL" at the Receiving Email tab, then you'll see what
evolution-ews tried to use and what the server returned. You should be
asked for credentials, if not stored anywhere already.

The actual autodiscover URL is derived from the email address domain
and from the current Host URL.

EWS_DEBUG=2 evolution autodiscovery yields:

< HTTP/1.1 2 Error resolving “autodiscover.exchange.infinera.com”: Name or service not known
< Soup-Debug-Timestamp: 1562059608
< Soup-Debug: SoupMessage 0 (0x55b373a13460)
  
< HTTP/1.1 4 Could not connect: Connection refused
< Soup-Debug-Timestamp: 1562059608
< Soup-Debug: SoupMessage 0 (0x7fd8c8a160d0)
  
POST /autodiscover/autodiscover.xml HTTP/1.1
Soup-Debug-Timestamp: 1562059608
Soup-Debug: SoupSessionAsync 1 (0x7fd820003220), SoupMessage 1 (0x7fd8c86c1e50), SoupSocket 1 
(0x7fd81000bb60)
Host: autodiscover.infinera.com
User-Agent: Evolution/3.32.2
Content-Type: text/xml; charset=utf-8
Connection: Keep-Alive
Authorization: NTLM TlRMTVNTUAABAAAABYIIAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAA

<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006";>
  <Request>
    <EMailAddress>joakim tjernlund infinera com</EMailAddress>
    
<AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema>
  </Request>
</Autodiscover>
  
< HTTP/1.1 401 Unauthorized
< Soup-Debug-Timestamp: 1562059609
< Soup-Debug: SoupMessage 1 (0x7fd8c86c1e50)
< Server: Microsoft-IIS/8.0
< request-id: bf2ff059-d0e6-423e-afba-af08d93583aa
< Set-Cookie: ClientId=0PFBYHUURYZLMLGM9W; expires=Wed, 01-Jul-2020 09:26:49 GMT; path=/; HttpOnly
< WWW-Authenticate: NTLM
TlRMTVNTUAACAAAAEAAQADgAAAAFgokC0gVpwh6RHloAAAAAAAAAAK4ArgBIAAAABgLwIwAAAA9JAE4ARgBJAE4ARQBSAEEAAgAQAEkATgBGAEkATgBFAFIAQQABABgAUwBWAC0ARQBYADEAMwAtAFAAUgBEADEABAAYAGkAbgBmAGkAbg
BlAHIAYQAuAGMAbwBtAAMAMgBzAHYALQBlAHgAMQAzAC0AcAByAGQAMQAuAGkAbgBmAGkAbgBlAHIAYQAuAGMAbwBtAAUAGABpAG4AZgBpAG4AZQByAGEALgBjAG8AbQAHAAgAroBjRrgw1QEAAAAA
< WWW-Authenticate: Negotiate
< WWW-Authenticate: Basic realm="autodiscover.infinera.com"
< X-Powered-By: ASP.NET
< X-FEServer: SV-EX13-PRD1
< Date: Tue, 02 Jul 2019 09:26:48 GMT
< Content-Length: 0
< 
  
POST /autodiscover/autodiscover.xml HTTP/1.1
Soup-Debug-Timestamp: 1562059609
Soup-Debug: SoupSessionAsync 1 (0x7fd820003220), SoupMessage 1 (0x7fd8c86c1e50), SoupSocket 1 
(0x7fd81000bb60), restarted
Host: autodiscover.infinera.com
User-Agent: Evolution/3.32.2
Content-Type: text/xml; charset=utf-8
Connection: Keep-Alive
Content-Length: 341
Authorization: NTLM
TlRMTVNTUAADAAAAGAAYAHIAAAAYABgAigAAAAAAAABAAAAAJAAkAEAAAAAOAA4AZAAAAAAAAAAAAAAAAYIIAGoAbwBjAGsAZQBAAGkAbgBmAGkAbgBlAHIAYQAuAGMAbwBtAFUATgBLAE4ATwBXAE4AwOrz3JwnYGgAAAAAAAAAAAAAAA
AAAAAA8oQ9RIcr5dkWFMk8X5BgqpD4CoZA58AF

<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006";>
  <Request>
    <EMailAddress>joakim tjernlund infinera com</EMailAddress>
    
<AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema>
  </Request>
</Autodiscover>
  
 The response code: 200
 The response headers for message 0x55b373e7f920
 =====================
Cache-Control: private
Transfer-Encoding: chunked
Server: Microsoft-IIS/10.0
request-id: a0a5c293-f2bb-45b9-9ccb-04eae6b1a0fc
X-CalculatedFETarget: BN6PR04CU002.internal.outlook.com
X-BackEndHttpStatus: 200
Set-Cookie: exchangecookie=73f062e1e0534919be4bdfcbfb409a1e; path=/; secure
X-FEProxyInfo: BN6PR04CA0041.NAMPRD04.PROD.OUTLOOK.COM
X-CalculatedBETarget: BN8PR10MB3540.namprd10.prod.outlook.com
X-BackEndHttpStatus: 200
X-RUM-Validated: 1
X-NoBuffering: 1
X-AspNet-Version: 4.0.30319
X-BeSku: WCS5
X-DiagInfo: BN8PR10MB3540
X-BEServer: BN8PR10MB3540
X-FEServer: BN6PR04CA0041
X-Powered-By: ASP.NET
X-FEServer: HE1PR05CA0154
Date: Tue, 02 Jul 2019 09:24:14 GMT

<?xml version="1.0"?>
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/";>
  <soap11:Header xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/";>
    <ServerVersionInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns="
http://schemas.microsoft.com/exchange/services/2006/types"; MajorVersion="15" MinorVersion="20" 
MajorBuildNumber="2032" MinorBuildNumber="20" Version="V2018_01_08"/>
  </soap11:Header>
  <soap11:Body xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/";>
    <m:GetStreamingEventsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:t="
http://schemas.microsoft.com/exchange/services/2006/types"; 
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages";>
      <m:ResponseMessages>
        <m:GetStreamingEventsResponseMessage ResponseClass="Success">
          <m:ResponseCode>NoError</m:ResponseCode>
          <m:ConnectionStatus>OK</m:ConnectionStatus>
        </m:GetStreamingEventsResponseMessage>
      </m:ResponseMessages>
    </m:GetStreamingEventsResponse>
  </soap11:Body>
</Envelope>

 The response code: 200
 The response headers for message 0x55b373e7f920
 =====================
Cache-Control: private
Transfer-Encoding: chunked
Server: Microsoft-IIS/10.0
request-id: a0a5c293-f2bb-45b9-9ccb-04eae6b1a0fc
X-CalculatedFETarget: BN6PR04CU002.internal.outlook.com
X-BackEndHttpStatus: 200
Set-Cookie: exchangecookie=73f062e1e0534919be4bdfcbfb409a1e; path=/; secure
X-FEProxyInfo: BN6PR04CA0041.NAMPRD04.PROD.OUTLOOK.COM
X-CalculatedBETarget: BN8PR10MB3540.namprd10.prod.outlook.com
X-BackEndHttpStatus: 200
X-RUM-Validated: 1
X-NoBuffering: 1
X-AspNet-Version: 4.0.30319
X-BeSku: WCS5
X-DiagInfo: BN8PR10MB3540
X-BEServer: BN8PR10MB3540
X-FEServer: BN6PR04CA0041
X-Powered-By: ASP.NET
X-FEServer: HE1PR05CA0154
Date: Tue, 02 Jul 2019 09:24:14 GMT

<?xml version="1.0"?>
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/";>
  <soap11:Header xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/";>
    <ServerVersionInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns="
http://schemas.microsoft.com/exchange/services/2006/types"; MajorVersion="15" MinorVersion="20" 
MajorBuildNumber="2032" MinorBuildNumber="20" Version="V2018_01_08"/>
  </soap11:Header>
  <soap11:Body xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/";>
    <m:GetStreamingEventsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:t="
http://schemas.microsoft.com/exchange/services/2006/types"; 
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages";>
      <m:ResponseMessages>
        <m:GetStreamingEventsResponseMessage ResponseClass="Success">
          <m:ResponseCode>NoError</m:ResponseCode>
          <m:ConnectionStatus>OK</m:ConnectionStatus>
        </m:GetStreamingEventsResponseMessage>
      </m:ResponseMessages>
    </m:GetStreamingEventsResponse>
  </soap11:Body>
</Envelope>

 The response code: 200
 The response headers for message 0x55b373e7f920
 =====================
Cache-Control: private
Transfer-Encoding: chunked
Server: Microsoft-IIS/10.0
request-id: a0a5c293-f2bb-45b9-9ccb-04eae6b1a0fc
X-CalculatedFETarget: BN6PR04CU002.internal.outlook.com
X-BackEndHttpStatus: 200
Set-Cookie: exchangecookie=73f062e1e0534919be4bdfcbfb409a1e; path=/; secure
X-FEProxyInfo: BN6PR04CA0041.NAMPRD04.PROD.OUTLOOK.COM
X-CalculatedBETarget: BN8PR10MB3540.namprd10.prod.outlook.com
X-BackEndHttpStatus: 200
X-RUM-Validated: 1
X-NoBuffering: 1
X-AspNet-Version: 4.0.30319
X-BeSku: WCS5
X-DiagInfo: BN8PR10MB3540
X-BEServer: BN8PR10MB3540
X-FEServer: BN6PR04CA0041
X-Powered-By: ASP.NET
X-FEServer: HE1PR05CA0154
Date: Tue, 02 Jul 2019 09:24:14 GMT

<?xml version="1.0"?>
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/";>
  <soap11:Header xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/";>
    <ServerVersionInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns="
http://schemas.microsoft.com/exchange/services/2006/types"; MajorVersion="15" MinorVersion="20" 
MajorBuildNumber="2032" MinorBuildNumber="20" Version="V2018_01_08"/>
  </soap11:Header>
  <soap11:Body xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/";>
    <m:GetStreamingEventsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:t="
http://schemas.microsoft.com/exchange/services/2006/types"; 
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages";>
      <m:ResponseMessages>
        <m:GetStreamingEventsResponseMessage ResponseClass="Success">
          <m:ResponseCode>NoError</m:ResponseCode>
          <m:ConnectionStatus>OK</m:ConnectionStatus>
        </m:GetStreamingEventsResponseMessage>
      </m:ResponseMessages>
    </m:GetStreamingEventsResponse>
  </soap11:Body>
</Envelope>

futhermore I notice that
- plain http requests are just redirected to https
- I never get an user/passwd prompt when I do fetch URL in Evo

 Jocke



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]