[sync] Littles questions about SyncML

Michael J Rubinsky mrubinsk at horde.org
Fri Jan 11 19:53:03 UTC 2013


Quoting Gerard Breiner <gerard.breiner at ias.u-psud.fr>:

> Le 11 janv. 2013 à 17:41, Michael J Rubinsky a écrit :
>
>> Quoting Gerard Breiner <gerard.breiner at ias.u-psud.fr>>
>>> Le 11 janv. 2013 à 14:24, Jens-Uwe Mozdzen a écrit :
>>>
>>>> Hi Gerard,
>>>>
>>>> Zitat von Gerard Breiner <gerard.breiner at ias.u-psud.fr
>>>>> [...] So I corrected my mistake : Alias  
>>>>> /Microsoft-Server-ActiveSync /www/horde5/rpc.php  and not  
>>>>> /rpc.php?. Many thanks Mike.
>>>>> Then I tried again to create an account exchange activesync   
>>>>> from my mobile (client RemoSync of Remoba) which is exchange  
>>>>> activeSync.
>>>>> I face the error "Client does not support the protocol version".  
>>>>> Yet I tried all of each version available in  
>>>>> $conf[activesync][version]?.
>>>>
>>>> I don't recall having you mention a check of your web server logs.
>>>>
>>>> When the ActiveSync client registers with H5, you should see a  
>>>> couple of accesses to your web server (like "OPTIONS  
>>>> /Microsoft-Server-ActiveSync HTTP/1.1" 200 -" and ""POST  
>>>> /Microsoft-Server-ActiveSync?Cmd=FolderSync&User=... HTTP/1.1"  
>>>> 200 89352"). Do you see at least connection attempts by the  
>>>> client? If yes, are those responded to with errors? If error,  
>>>> then what's in the error log of your server? If no error, you  
>>>> ought to turn on ActiveSync logging in Horde's configuration to  
>>>> see what's going on.
>>>>
>>>> Judging from the the client UI alone is like checking a foggy  
>>>> crystal ball ;)
>>>>
>>>> Regards,
>>>>
>>>> Jens
>>>> --
>>>> Jens-U. Mozdzen                         voice   : +49-40-559 51 75
>>>> NDE Netzdesign und -entwicklung AG      fax     : +49-40-559 51 77
>>>> Postfach 61 03 15                       mobile  : +49-179-4 98 21 98
>>>> D-22423 Hamburg                         e-mail  : jmozdzen at nde.ag
>>>>
>>>>       Vorsitzende des Aufsichtsrates: Angelika Mozdzen
>>>>         Sitz und Registergericht: Hamburg, HRB 90934
>>>>                 Vorstand: Jens-U. Mozdzen
>>>>                  USt-IdNr. DE 814 013 983
>>>>
>>>> --
>>>> sync mailing list
>>>> Frequently Asked Questions: http://wiki.horde.org/FAQ
>>>> To unsubscribe, mail: sync-unsubscribe at lists.horde.org
>>>
>>>
>>> Hi Jens,
>>>
>>> My apache server logged no error according ErrorLog  
>>> logs/webmail5-devel_error_log but I get the accesses to my web  
>>> server :
>>>
>>> visiteur178.domain - domain\\gbreiner [11/Jan/2013:16:59:29 +0100]  
>>> "OPTIONS  
>>> /Microsoft-Server-ActiveSync?Cmd=Version&User=gbreiner&DeviceId=androidc1885645527&DeviceType=Android HTTP/1.1" 302 - "-"  
>>> "Remoba-GT-S5839i-GINGERBREAD-GT-S5839i"
>>> visiteur178.domain - domain\\gbreiner [11/Jan/2013:16:59:29 +0100]  
>>> "GET  
>>> /login.php?url=http%3A%2F%2Fhorde5.domain.fr%2FMicrosoft-Server-ActiveSync%3FCmd%3DVersion%26User%3Dgbreiner%26DeviceId%3Dandroidc1885645527%26DeviceType%3DAndroid&horde_logout_token=QhOmV6Ulrd6ie9NGwqoBRw4&app=horde HTTP/1.1" 200 5864 "-"  
>>> "Remoba-GT-S5839i-GINGERBREAD-GT-S5839i"
>>> visiteur160.domain - - [11/Jan/2013:17:01:59 +0100] "POST  
>>> /services/ajax.php/horde/topbarUpdate HTTP/1.1" 200 1811  
>>> "http://horde5.domain/admin/config/index.php" "Mozilla/5.0  
>>> (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20100101  
>>> Firefox/17.0"
>>> visiteur160.domain - - [11/Jan/2013:17:02:00 +0100] "GET  
>>> /js/popup.js?v=656aaffb18e6a1aff5fbfe3cf106e125 HTTP/1.1" 304 -  
>>> "http://horde5.domain/admin/config/index.php" "Mozilla/5.0  
>>> (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20100101  
>>> Firefox/17.0"
>>>
>>> I get too in line of command : Message from syslogd at inf-ext1 at  
>>> Jan 11 17:14:54 ...
>>> HORDE5: User is not authorized for horde [pid 24797 on line 259 of  
>>> "/www/horde5/pear/php/Horde/Registry.php"]
>>>
>>> Authentication is ldap and I know I can logged myself in the horde  
>>> interface with the same username and password I use for activesync.
>>> Nevertheless the "domain\\gbreiner make me puzzle…
>>>
>>> Thanks and Best Regards
>>>
>>> Gérard
>>> --
>>> sync mailing list
>>> Frequently Asked Questions: http://wiki.horde.org/FAQ
>>> To unsubscribe, mail: sync-unsubscribe at lists.horde.org
>>>
>> It looks like you are being redirected to the login screen? That  
>> shouldn't be happening. Double check the alias and redirect config.
>> --
>> Mike
>> Sent from mobile
>>
>> Gerard Breiner <gerard.breiner at ias.u-psud.fr> wrote:
>>
>>
>>
>> --
>> sync mailing list
>> Frequently Asked Questions: http://wiki.horde.org/FAQ
>> To unsubscribe, mail: sync-unsubscribe at lists.horde.org
>
> Yet my config apache is currently :
>
> [CODE]
> <VirtualHost *:80>
> Servername horde5.domain.fr
> DocumentRoot  /www/horde5
> Alias /Microsoft-Server-ActiveSync /www/horde5/rpc.php
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
> TransferLog logs/hordesync_access_log
> ErrorLog logs/hordesync_error_log
> LogLevel error
> <Directory /www/horde5>
>     IndexOptions Charset=UTF-8
>     AcceptPathInfo On
>     Options FollowSymLinks
> </Directory>
> </VirtualHost>
> [/CODE]
>
> The client I use on my mobile is remosync of Remoba (thanks Mike for  
> the tests).
> Here is the setup of the account I try to create :
> Server Address : horde5.domain  //By default EAS  (Remosync)  
> redirect to  http://horde5.domain/Microsoft-Active-Server   (the  
> reason of the Alias if I do understand)
>  Require SSL  : No so that to avoid issues with CA
> User : gbreiner
> Password: ******
> Email Address : gerard at domain.fr
>
> From the mobile I get "Account Setup Client does not support the  
> protocol version"
> From the server :
>     tail -100 hordesync_access_log
>
> [LOG]
> amontsouris-173-2-78-253.w80-4.abo.wanadoo.fr - gbreiner  
> [11/Jan/2013:20:07:04 +0100] "OPTIONS  
> /Microsoft-Server-ActiveSync?Cmd=Version&User=gbreiner&DeviceId=androidc1885645527&DeviceType=Android HTTP/1.1" 200 - "-"  
> "Remoba-GT-S5839i-GINGERBREAD-GT-S5839i"
> [/LOG]

There is no such command as  "Version"  in EAS, though this probably  
doesn't make a difference since it's in an OPTIONS request. Just  
further shows this is a flakey client.

> When I try with the native EAS of my mobile I get "Can't to connect  
> to the server" .
> From the server's logs I get :
> [LOG]
> gbreiner [11/Jan/2013:20:15:50 +0100] "OPTIONS  
> /Microsoft-Server-ActiveSync?Cmd=OPTIONS&User=gbreiner&DeviceId=validate&DeviceType=SAMSUNGGTS5839i HTTP/1.1" 200 - "-"  
> "SAMSUNG-GT-S5839i/100.20306"
> [/LOG]

As Jens had also suggested, I would need to see at a minimum, the synclog.
-- 
mike

The Horde Project (www.horde.org)
mrubinsk at horde.org



More information about the sync mailing list