[horde] Can't Connect ActiveSync Android

Michael J Rubinsky mrubinsk at horde.org
Fri Jun 22 22:18:26 UTC 2012


Quoting Kevin Smith <theonlytalkinggoat at gmail.com>:

> On Fri, Jun 22, 2012 at 3:38 PM, Michael J Rubinsky  
> <mrubinsk at horde.org>wrote:
>
>>
>> Quoting Michael J Rubinsky <mrubinsk at horde.org>:
>>
>>  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>
>>>>>>>> ><
>>>>>>>> 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<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}]
>>>>>>
>>>>>
>> Where is horde installed? You are using two different web roots in this
>> configuration. If horde's root directory is in /var/www/webmail then your
>> rewrite rule needs to reflect that.
>>
>> --
>> 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
>>
>> You're right, Mike. I completely missed that...
>
> <virtualhost 192.168.15.4>
>    documentroot /var/www/webmail
>    servername horde
> </virtualhost>
>
> RewriteRule ^/Microsoft-Server-ActiveSync /rpc.php [PT,L,QSA]

No idea then, sorry. You need to find out why, on your setup, it is  
redirecting to login.php - it works fine here.

-- 
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/e9513698/attachment.bin>


More information about the horde mailing list