Howto: CardDAV in Mac OS X Addressbook with owncloud

Tutorials on ownCloud administration
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
Born_in_1971
Newbie
Posts: 4
Joined: Sat Feb 04, 2012 11:38 pm

Howto: CardDAV in Mac OS X Addressbook with owncloud

Postby Born_in_1971 » Mon Feb 06, 2012 1:18 pm

In OS X 10.7 Lion is just works. Add a CardDAV account, with the server:

Code: Select all

http://SERVERADDRESS:PORTNUMBER/apps/contacts/carddav.php/principals/USER



In 10.6.x (tested with 10.6.8) Snow Leopard you need to change the serveraddress in a .plist.

1. Fist, enter the serveraddress via the account option in Addressbook. It wil fail, but that's the idea.

Code: Select all

http://SERVERADDRESS:PORTNUMBER/apps/contacts/carddav.php/principals/USER

After the failure, close Addressbook.

2.Then edit ~/Library/Application Support/Addressbook/Sources/alongfoldername/Configuration.plist

If you already have other Carddav accounts, find the correct one in the Sources folder.

Edit Configuration.plist, find the entry servername, and correct it's value. Most likely there is a weird port at the end, like: :0(null)). Delete that.
Make sure correct entry is:

Code: Select all

http://SERVERADDRESS:PORTNUMBER/apps/contacts/carddav.php/principals/USER


3. Close and open Addressbook.

Now, you should have a working CardDAV account in you AddressBook on OS X.

See also this thread: http://forum.owncloud.org/viewtopic.php?f=3&t=39&p=158&hilit=addressbook#p158

rnm3
Newbie
Posts: 3
Joined: Sat Feb 11, 2012 3:52 pm

Re: Howto: CardDAV in Mac OS X Addressbook with owncloud

Postby rnm3 » Sat Feb 11, 2012 4:12 pm

iCal sync works just fine, but the OS X address book still refuses to work. :evil: Even after exactly following the steps posted on this thread or on that page. I tried this on two different OS X 10.6 installations.

When I click on the grey warning icon in the address book list, I get this error:

Von CardDAV-Server Fehler (405) für den Benutzer „MY_USERNAME“ erhalten.


Unfortunately I cannot find anything useful regarding that error 405. :(

Configuration.plist looks like this:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
   <key>_className</key>
   <string>PHXCardDAVSource</string>
   <key>disabled</key>
   <integer>0</integer>
   <key>haveWriteAccess</key>
   <integer>0</integer>
   <key>isSharedABAccount</key>
   <integer>1</integer>
   <key>name</key>
   <string>XYZ Kontakte</string>
   <key>refreshInterval</key>
   <integer>0</integer>
   <key>serverSupportsSearch</key>
   <integer>0</integer>
   <key>servername</key>
   <string>http://MY_DOMAIN:80/owncloud/apps/contacts/carddav.php/principals/MY_USERNAME</string>
   <key>username</key>
   <string>MY_USERNAME</string>
   <key>usesKerberos</key>
   <integer>0</integer>
</dict>
</plist>


What other information would help?

Environment: SharedHosting
Server: Apache
Database: Sqlite
Client: Address Book in OS X 10.6.8
OC-Version: 3
PHP-Version: 5.3.8

Any help or hint is greatly appreciated! Thank you!

Born_in_1971
Newbie
Posts: 4
Joined: Sat Feb 04, 2012 11:38 pm

Re: Howto: CardDAV in Mac OS X Addressbook with owncloud

Postby Born_in_1971 » Sat Feb 11, 2012 7:25 pm

Replace MY_DOMAIN with your owncloud domain. E.g., if you have installed owncloud on your domain newsateleven.de, then MY_DOMAIN=newsateleven.de

If your owncloud username is littledieterwantstofly, then MY_USERNAME=littledieterwantstofly

The whole servername in the .plist should change from:

Code: Select all

http:///MY_DOMAIN:80/owncloud/apps/contacts/carddav.php/principals/MY_USERNAME

to

Code: Select all

http:///newsateleven.de:80/owncloud/apps/contacts/carddav.php/principals/littledieter
wantstofly


Good luck!

Edit: code wrap around urls

rnm3
Newbie
Posts: 3
Joined: Sat Feb 11, 2012 3:52 pm

Re: Howto: CardDAV in Mac OS X Addressbook with owncloud

Postby rnm3 » Sun Feb 12, 2012 1:48 pm

Goodness gracious, I didn't know I had to clarify that MY_DOMAIN and MY_USERNAME are replacements I made for security reasons in this post only. Of course, my real configuration contains the real domain and real username. :roll: No offence! :D

Any hints on that ominous error 405? Hints are still appreciated. :)

Vathek
Beginner
Posts: 21
Joined: Thu Feb 02, 2012 4:20 am

Re: Howto: CardDAV in Mac OS X Addressbook with owncloud

Postby Vathek » Sun Feb 12, 2012 7:06 pm

Probably no what you'd like to hear, but I faced the same problem and just upgraded to Lion. Cost me 30 bucks and saved me lots of headaches. But once again, thanks very much Steve! :evil:

andreasmax
Newbie
Posts: 4
Joined: Mon Feb 13, 2012 8:55 pm

Re: Howto: CardDAV in Mac OS X Addressbook with owncloud

Postby andreasmax » Sun Feb 26, 2012 7:40 pm

Have the exactly same errors here. I tried to change the URL in the config file but that did not work.

Takuto
Newbie
Posts: 1
Joined: Fri Apr 13, 2012 12:24 pm

Re: Howto: CardDAV in Mac OS X Addressbook with owncloud

Postby Takuto » Fri Apr 13, 2012 12:30 pm

Try to go to the Address Book preferences again and re-enter you password for the owncloud account. After that, it worked for me.

I posted very detailed instructions, how this works with snow leopards OS on the mailing list some time ago. You can read this one here: http://mail.kde.org/pipermail/owncloud/2012-February/002199.html

gopeter
Newbie
Posts: 1
Joined: Wed Jul 18, 2012 3:04 pm

Re: Howto: CardDAV in Mac OS X Addressbook with owncloud

Postby gopeter » Wed Jul 18, 2012 3:05 pm

I'm using 10.6.8. too, but the configuration.plist trick doesn't work for me.
Still get the 405 error... even if i re-type the password in addresbook.app.

Does anyone know how to solve the 405 error problem?

bettyboo
Starter
Posts: 55
Joined: Tue Sep 11, 2012 7:29 am
ownCloud version: 7.0.3
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4

Re: Howto: CardDAV in Mac OS X Addressbook with owncloud

Postby bettyboo » Tue Sep 11, 2012 7:34 am

I did just configure my mac address book yesterday ad first got the error 405 as well.

Then, I was succesfull by changing the string in the plist to: <string>http://SERVER:PORT/owncloud/remote.php/carddav/principals/USER</string>

That worked for OSX 10.6.8 and owncloud 4
Owncloud 7.0.3 on Ubuntu Desktop (growing)
Owncloud 5.0.14a on OSX (shrinking)
Mobile Clients Android 4.0, 4.1, 4.3, 4.4 and iOS 4,5,6
CalDAV-sync, CardDAV-sync

User avatar
pheraph
Newbie
Posts: 5
Joined: Mon Jun 11, 2012 6:04 pm

Re: Howto: CardDAV in Mac OS X Addressbook with owncloud

Postby pheraph » Sun Oct 07, 2012 2:23 pm

Hey,

the server address in the documentation is wrong it reads:

Code: Select all

ADDRESS/remote.php/caldav/principals/username/


instead of

Code: Select all

ADDRESS/remote.php/carddav/principals/username/


The documentation should also put the whole extended setup for 10.6 into a separate paragraph with a clear headline that this instructions are for 10.6 only.

It should also be explained that you need to drag and drop your local and/or iCloud-contacts to the ownCloud-calendar by hand. If you need help updating the Apple-related documentation I'd be willing to contribute my experiences during the migration from iCloud to ownCloud.

Raphael


  • Similar Topics
    Replies
    Views
    Last post

Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 1 guest