[horde] Can't Connect ActiveSync Android

Kevin Smith theonlytalkinggoat at gmail.com
Fri Jun 22 16:41:05 UTC 2012


On Fri, Jun 22, 2012 at 10:17 AM, Michael J Rubinsky <mrubinsk at horde.org>wrote:

>
> Quoting Kevin Smith <theonlytalkinggoat at gmail.com>**:
>
>  I've been trying to set up my Android to connect to horde's activesync for
>> a couple days, now, and I can't seem to get it to work. I followed the
>> WIKI
>> directions, here:
>>
>> http://wiki.horde.org/**ActiveSync <http://wiki.horde.org/ActiveSync>
>>
>> ... but it makes no difference. Whenever I try to connect, the droid just
>> produces the 'unable to connect error' and there isn't much to go off of
>> in
>> the log:
>>
>> horde:80 192.168.15.104 - *** [22/Jun/2012:09:38:51 -0500] "OPTIONS
>> /Microsoft-Server-ActiveSync?**Cmd=OPTIONS&User=***&DeviceId=**
>> validate&DeviceType=Android
>> HTTP/1.1" 302 828 "-" "Android/0.3"
>>
>> horde:80 192.168.15.104 - *** [22/Jun/2012:09:38:52 -0500] "GET
>> /login.php?url=http%3A%2F%**2Fhorde.***.com%2FMicrosoft-**
>> Server-ActiveSync%3FCmd%**3DOPTIONS%26User%3D***%**26DeviceId%3Dvalidate%
>> **26DeviceType%3DAndroid&horde_**logout_token=T-**
>> SDfC3dhbAl1VtKs5aaSG_4Dt9j9-**k9kU4qxDZKFPfyKy1iar0&app=**horde
>> HTTP/1.1" 200 5901 "-"
>>
>
> The Microsoft-Server-ActiveSync url should not be redirecting to
> login.php. It sounds like you incorrectly setup the Alias directive.
> /Microsoft-Server-ActiveSync should be an Alias to the filesystem path to
> horde/rpc.php
>
>
> --
> mike
>
> The Horde Project (www.horde.org)
> mrubinsk at horde.org
>
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>
>
I attached my apache2.conf relevant lines:

Alias /microsoft-server-activesync /var/www/webmail/rpc.php
Alias /autodiscover/autodiscover.xml /var/www/webmail/rpc.php

RewriteEngine On
RewriteRule ^/Microsoft-Server-ActiveSync /horde/rpc.php [PT,L,QSA]
RewriteRule .* - [E=HTTP_MS_ASPROTOCOLVERSION:%{HTTP:Ms-Asprotocolversion}]
RewriteRule .* - [E=HTTP_X_MS_POLICYKEY:%{HTTP:X-Ms-Policykey}]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

It gives me this when I visit the page in a browser:

<SOAP-ENV:Envelope><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>Bad
Request</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

I thought the same thing, it wasn't redirecting, so I replaced rdc.php with
a file that contained the text "test" and it displayed it on the browser,
using horde.***.com/microsoft-server-activesync


More information about the horde mailing list