By Arnaudq-Oracle on Jun 18, 2009
As you probably know, the new iPhone OS 3.0 is CalDAV enabled.
The default configuration panel is very simple (server name, user name, password), but it makes some assumptions that may be valid for a production system but not for a demo server:
- use of standard ports (443 or 80),
- ssl is the default,
- the account url follows a fixed pattern: http(s)://<server name>/principals/users/<user name>/
Demo servers usually run on non standard port numbers and they do not always own the full namespace, leading to account urls (actually principal url) that look more like :
Typing this kind of url can be very tedious and error prone, especially given that the advanced configuration panel offers just a tiny text box.
Here is the simplest way that I have found so far to make the process a little bit less painful, assuming that you have a mail account configured already.
1) email the principal url to yourself
... from your regular desktop/laptop email client of course. Check that the url is valid (using a regular browser) before sending it.
The principal url will vary from servers to servers. It is the same that you may have configured if you are using the Apple iCal client (iCal --> Preferences --> Accounts --> <your CalDAV account> --> Server Settings --> Account URL).
2) copy the url from the iPhone Mail App
Go to the iPhone Mail App and open the email.
Press and hold on the url in the message.
You should be asked whether you want to Open or copy the link:
3) go to the CalDAV account creation panel
Settings --> Mail, Contacts, Calendars --> Add Account... --> Other --> Add CalDAV Account
4) Enter the server info
Tap on the Server field. A "Paste" button should appear on top of the text field:
Press on "Paste". The full url is shown:
This is the only trick, really: the client accepts a full url in the server name field.
5) Enter the User Name and password
Go to the User Name field. The full principal url is replaced by the server name only. This is OK:
Finally, enter your password and tap "Next" --> the client indicates "Verifying CalDAV account", then "Account verified".
You can now go to the Calendar application.