AutoDiscovery is not working
Hi ZeXtras,
I've been trying to get AutoDiscovery to work on my test VM but it fails to return valid xml. Here is my environment:
zmcontrol -v:
HTML Code:
Release 8.0.0.GA.5434.UBUNTU12.64 UBUNTU12_64 FOSS edition.
zxsuite core getVersion:
HTML Code:
zextras_version 1.8.18
zextras_target 8.0.0
zextras_commit 3059c6f79b2810b3bec750378cc1ea78a2e5f5e0
zextras_lib_version 1.0.0
zextras_lib_commit 3f5febe98cc757c290650e6a9601977f1c96e18e
DNS Configuration:
Code:
SRV Record:
Service:_autodiscover
Protocol:_tcp
Name:domain.com
Priority:10
Weight:2
Port:443
Target:mail.domain.com
I've used this too to test Exchange AutoDiscovery among with an Android 4.4.4 device: https://testconnectivity.microsoft.com/. It fails at:
Code:
Attempting to send an Autodiscover POST request to potential Autodiscover URLs.
Autodiscover settings weren't obtained when the Autodiscover POST request was sent.
Additional Details
Test Steps
The Microsoft Connectivity Analyzer is attempting to retrieve an XML Autodiscover response from URL https://mail.domain.com:443/Autodiscover/Autodiscover.xml for user admin@domain.com.
The Microsoft Connectivity Analyzer failed to obtain an Autodiscover XML response.
Additional Details
The Response element in the payload was null.
<?xml version="1.0"?>
<Autodiscover xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006" />
HTTP Response Headers:
Content-Length: 613
Content-Type: text/xml
Date: Sun, 05 Oct 2014 23:04:51 GMT
Elapsed Time: 1415 ms.
Extract from /opt/zimbra/log/sync.log:
Code:
2014-10-06 00:59:57,086 INFO [qtp345520345-107:https://192.168.1.56:443/Autodiscover/Autodiscover.xml] [] sync - Handling autodiscover request...
2014-10-06 00:59:57,235 WARN [qtp345520345-107:https://192.168.1.56:443/Autodiscover/Autodiscover.xml] [] sync - No basic auth header in the request
2014-10-06 00:59:57,235 WARN [qtp345520345-107:https://192.168.1.56:443/Autodiscover/Autodiscover.xml] [] sync - HTTP/1.1 401 Unauthorized
2014-10-06 00:59:57,418 INFO [qtp345520345-107:https://192.168.1.56:443/Autodiscover/Autodiscover.xml] [] sync - Handling autodiscover request...
2014-10-06 00:59:57,574 INFO [qtp345520345-107:https://192.168.1.56:443/Autodiscover/Autodiscover.xml] [name=admin@domain.com;tid=107;] sync - Cached auth NOT found for admin@domain.com
2014-10-06 00:59:57,610 INFO [qtp345520345-107:https://192.168.1.56:443/Autodiscover/Autodiscover.xml] [] sync - sending autodiscover response...
zxsuite core getproperty ZxCore_LogLevel:
Code:
ZxCore_LogLevel 0 (1)
cat /etc/lsb-release:
Code:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.5 LTS"
uname -a:
Code:
Linux pcmonitor 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
I've even tried adding a debug logger for the admin@domain.com but it only logged this: (command used was: zxsuite mobile doAddAccountLogger admin@domain.com debug /opt/zimbra/log/admin_debug.log)
Code:
2014-10-06 00:58:51,287 [ZxLink Handler Thread] info Logging admin@domain.com
I've inputed the following fields in the test wizard:
Code:
Email Address: admin@domain.com
Domain\\UserName: admin@domain.com
Password: <password>
Confirm Password: <password>
Ignore SSL: No
I understand: Yes
Here is my /opt/zimbra/jetty/etc/jetty.xml.in relevant extract:
Code:
<Set name="handler">
<New id="Handlers" class="org.eclipse.jetty.rewrite.handler.RewriteHandler">
<Set name="rewriteRequestURI">true</Set>
<Set name="rewritePathInfo">false</Set>
<Set name="originalPathAttribute">requestedPath</Set>
<Call name="addRule"><Arg><New class="org.eclipse.jetty.rewrite.handler.MsieSslRule"/></Arg></Call>
<!-- map convenience URLs to the webapp that handles them -->
<Call name="addRule">
<Arg>
<New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
<Set name="pattern">/Microsoft-Server-ActiveSync/*</Set>
<Set name="replacement">/service/extension/zimbrasync</Set>
</New>
</Arg>
</Call>
<Call name="addRule">
<Arg>
<New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
<Set name="pattern">/autodiscover/*</Set>
<Set name="replacement">/service/extension/autodiscover</Set>
</New>
</Arg>
</Call>
<Call name="addRule">
<Arg>
<New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
<Set name="pattern">/Autodiscover/*</Set>
<Set name="replacement">/service/extension/autodiscover</Set>
</New>
</Arg>
</Call>
<Call name="addRule">
<Arg>
<New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
<Set name="pattern">/AutoDiscover/*</Set>
<Set name="replacement">/service/extension/autodiscover</Set>
</New>
</Arg>
</Call>
Any ideas what I did wrong?
Thanks,
Paul