[horde] Can't Connect ActiveSync Android

Michael J Rubinsky mrubinsk at horde.org
Fri Jun 22 20:32:33 UTC 2012


Quoting Kevin Smith <theonlytalkinggoat at gmail.com>:

> On Fri, Jun 22, 2012 at 12:03 PM, Michael J Rubinsky  
> <mrubinsk at horde.org>wrote:
>
>>
>> Quoting Kevin Smith <theonlytalkinggoat at gmail.com>**:
>>
>>  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><
>>>>> 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<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
>>>
>>
>> Why are you using all lowercase? The endpoint is
>> /Microsoft-Server-ActiveSync
>>
>>
>>  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
>>> --
>>> Horde mailing list
>>> Frequently Asked Questions: http://horde.org/faq/
>>> To unsubscribe, mail:  
>>> horde-unsubscribe at lists.horde.**org<horde-unsubscribe at lists.horde.org>
>>>
>>
>>
>> --
>> 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
>>
>
> Thanks, Mike. It's lower case because I didn't think that Apache cares if
> an address is upper or lower case. I changed it, anyway, but I'm still
> unable to connect, using the Droid. 'Unable to open connection to server'
>
> horde:80 192.168.15.104 - ***@***.com [22/Jun/2012:13:20:41 -0500] "OPTIONS
> /Microsoft-Server-ActiveSync?Cmd=OPTIONS&User=***%40***.com&DeviceId=validate&DeviceType=Android
> HTTP/1.1" 302 853 "-" "Android/0.3"
> horde:80 192.168.15.104 - ***@***.com [22/Jun/2012:13:20:41 -0500] "GET
> /login.php?url=http%3A%2F%2Fhorde.***.com%2FMicrosoft-Server-ActiveSync%3FCmd%3DOPTIONS%26User%3D***%2540***.com%26DeviceId%3Dvalidate%26DeviceType%3DAndroid&horde_logout_token=T-S3eYokNJ5VArAFXIQfZXpgt4uCiLTjbVDAhz-OKa2hoVangB0&app=horde
> HTTP/1.1" 200 5924 "-" "Android/0.3"

Something is still causing Apache to redirect  
/Microsoft-Server-ActiveSync to login.php; That shouldn't be happening.

-- 
mike

The Horde Project (www.horde.org)
mrubinsk at horde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6135 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.horde.org/archives/horde/attachments/20120622/f6980ce1/attachment.bin>


More information about the horde mailing list