Horde 4 has support for allowing Horde to sync with mobile devices using the mobile device's support for Microsoft Exchange/ActiveSync. The code that Horde's ActiveSync implementation uses for handling the protocol communication is based in part on the Z-Push library (http://z-push.sourceforge.net).
The Horde ActiveSync implementation provides over the air synchronization of contacts, calendar, and task data to devices such as the iPhone/iPod Touch, Android and any other system supporting ActiveSync. This implementation supports Microsoft ActiveSync protocol versions up to 2.5 - the version implemented by Microsoft Exchange 2003.
ActiveSync support is fairly stable, but there are still devices on which it has not been tested yet. If you have used a device with Horde's ActiveSync support that is not listed below, please feel free to let us know how it went.
To activate the server, it needs to be enabled in Horde's configuration, on the ActiveSync tab. It's already enabled by default. The SQL tables that horde uses are created as usual from the Horde configuration screen.
Next, you will need to configure your webserver to redirect the URL /Microsoft-Server-ActiveSync to your horde/rpc.php file. How you do this depends on your webserver and it's configuration. For Apache, something like:
Alias /Microsoft-Server-ActiveSync /var/www/horde/rpc.php
or for lighttpd:
alias.url = ("/Microsoft-Server-ActiveSync" => "/var/www/horde/rpc.php");
Contacts, Calendar and Task syncing are working. Note that not all devices support Tasks. Of the tested devices, iPhone/iPod and Android are both lacking native Task applications. The TouchDown client and Windows Mobile emulator both support Tasks.
Client searching of an "Exchange Global Address List" (GAL) is supported, provided that Turba (or other application providing the contacts api) is configured to provide a GAL. See the Turba configuration for details.
Provisioning along with remote wipe is also working on devices that actually support it.This code has been reported to work on the following devices:
|Android SDK Emulator||2.0.1 and 2.1||Does NOT support provisioning and will NOT work with it set to Force.||No native support.||Contacts only as the emulator does not have a native calendar application|
|HP WebOS||2.1.0||Yes||?||Contacts, Calendar, Tasks are working, for SSL with a private certificate you have to trust the certificate in the browser|
|HTC Desire Z / HTC Desire HD||2.2||?||?||Contacts and Calendar via native ActiveSync, SSL untested|
|HTC Desire S||2.3.3||?||?||Contacts and Calendar via native ActiveSync, SSL ok|
|HTC Magic||Android 2.2.1 unbranded||?||?||Contacts, Calendars|
|iPod Touch / iPad / iPhone||3.1.3, 4.3.3, 4.3.5 (8L1)||Yes, with Bugs. Certain versions of iOS - 4.3(8F190) for one, go into a provisioning loop due to a bug in iOS (it continues to send the OLD X-Ms-Policykey value after it receives a new one).||Yes||Contacts and Calendar.|
|Motorola Droid||2.0.1, 2.1, 2.2, 2.3||No (See above)||No native support, but the Corporate Directory app in the Marketplace works well.||Contacts and Calendar data. On Froyo/2.2 SSL connections will NOT work with a self signed certificate even if the "Accept All Certificates" checkbox is selected. See http://www.google.com/support/forum/p/android/thread?tid=45e6836618212fdf&hl=en (A (Free) Level One certificate from http://www.startssl.com/ seems to work well here).|
|Motorola Milestone||2.1, 2.2||?||Yes, via Corporate Directory app||Contacts and Calendar|
|Nokia E90||MfE 3.0||?||?||Contacts verified to work.|
|Nokia N900||Maemo 1.3||No||?||Client fails to send standard post variables, but Horde works around this. Contacts verified to work. Earlier versions of firmware are either completely broken, or only support ActiveSync version 12.1.|
|TouchDown For Droid||Version 6.5.0002||Yes||Yes||Contacts, Calendar (recurrence/exceptions mostly work - minor bugs still being worked out), and Tasks.|
|Windows Mobile Device||6.1||?||?||Contacts reported to work.|
|Windows Mobile Emulator||6.5||Yes||Yes||Contacts, Calendars (with proper support for recurring events and exceptions), and Tasks.|
|Windows Phone 7||7.0||?||?||Contacts, Calendars|
It's beyond the scope of this page to go into detail for each individual device. In general, you will need to create a new account on the device. The account type should be something like Microsoft Exchange or ActiveSync. Some devices use Corporate. You will need to enter your normal Horde username and password in the appropriate fields. In the field for the server address, you should enter the root of the webserver or virtual host that hosts Horde. For example, if you host horde at http://host.example.com/horde then you should enter host.example.com. You can ignore any reference to a domain entry.
A special note for the iPhone/iPod (and possibly others) - if you do not use a SSL enabled site you may receive errors about not being able to find the ActiveSync server. If this happens, just continue, or save, or whatever your option is to continue. On the iPhone, after everything is completely set up, you must go back into the account settings and disable SSL.
After the connection particulars are entered, you should choose to enable the folders that you want sync'd. Contacts, Calendar and Tasks are supported, but your device also needs to support the requested folders.
Provisioning allows devices to be more tightly registered with a particular server. It enables the server to be able to send policy settings to the device. These policy settings include things like requiring a PIN to unlock the device, the complexity of the PIN required, the number of failed login attempts allowed etc... Additionally, it enables devices to be remotely wiped so that if a device is lost or stolen, the user or administrator can request the device to be wiped.
Users can initiate a remote wipe, as well as view/manage their partnered devices in the ActiveSync user preference.
Clicking Wipe in the Horde interfaces for device management flags the server to send the wipe command to the device the next time it synchronizes. The next time the device attempts to request a command other then PING or OPTIONS, it will be wiped. The ActiveSync preference page shows the status of all the user's devices. If the status is listed as Pending, and you wish to cancel the wipe request, you may do this by clicking the Cancel Wipe button. You should see the status be reset to Provisioned. After it is wiped, the status will be shown as Wiped, if you wish to allow the device to connect to your server again, you need to explicitly remove the device as a sync partner by clicking the Remove button. If you do not remove this entry, the device will continue to be wiped each time it reconnects to the server.
If you are not even able to get past the initial setup page on your phone: you should first check to be sure you do not have SSL enabled on the phone when you're server is not serving SSL. The iPhone/iPod will not let you turn this off until after you save the configuration, so you must continue through all the errors and go back into the settings to disable SSL. You should also make sure that you have not enabled Provisioning support if your phone does not support it.
If the configuration went well, but you are not seeing any contacts/calendar items appear on the device: Some clients require a manual refresh or folder selection after setup when not using the "Automatic Discovery" facility of Exchange. With TouchDown, for example, after setup you must select the folders you want sync'd under the Advanced settings tab.
If all else fails and you can't figure out the issue, we will be happy to try to help you work it out, but you should be able to check/provide us with the following:
If you want to sniff the traffic on your server, and wireshark is not available becuase there is no windowing system, you can use the tshark application instead. The following command will capture http traffic on port 80, and will ignore most requests we are not interested in. It's worth mentioning that for the capture to be useful, you MUST not setup SSL on the device. Depending on your user's rights, you may need to run this as sudo:
tshark 'tcp port 80 and (((ip[2:2] - ((ip&0xf)<<2)) - ((tcp&0xf0)>>2)) != 0)' -w /path/to/capture/file
Some discussion/issues/info on calendar sycing
Some discussion on remote wipe issues with various devices
http://en.wikipedia.org/wiki/Exchange_ActiveSync - Good description of differences between AS versions.
Another AS implementation in PHP - there is some good implementation information there for the taking.
Not much here at all yet, but worth keeping an eye on:
Some links to very detailed articles. Mostly more recent EAS versions though.
iPhone/iPod Touch EAS:
Windows Mobile Emulators:
The cellular network emulator:
How to set it up: