CalDAV / CardDAV authentication problem
Rickard
22 June 2014, 13:06
Hello,
I've been trying to get some kind of CalDAV / CardDAV webapp working in hiawatha, but they all seem to suffer from the same problem. I get a 401 unauthorized error whenever I try to access it, even after entering the correct username & password.
This problem occurs with owncloud ( https:/example.com/owncloud/remote.php/carddav/addressbooks/username/ ) which seems to use SabreDAV.
It also occurs with Baikal ( https://example.com/baikal/card.php?/addressbooks/username/default?export )
If i login to the owncloud web ui and then try to access the URL it works, but with a fresh browser session it does not.
I use:
EnablePathInfo = yes
WebDAVapp = yes
Any advice on what I'm doing wrong would be appreciated.
Hugo Leisink
23 June 2014, 08:00
Please check that the cookies that are stored in your browser are the same after every page (re)load.
Rickard
23 June 2014, 15:53
What I meant was that by some quirk it works if I first login to the main web interface with the browser, but this is not the correct way to use it.
It does not work if I try to login via the popup you get when you visit the url directly, or with any of the programs I've tried, such as with thunderbird + lightning or with caldav/carddav apps for my phone.
Hugo Leisink
23 June 2014, 18:50
For Baikal, I've also set "FollowSymlinks = yes", because of the softlinks in the html directory.
For ownCloud, I've set "AllowDotFiles = yes". But I don't think that should make a difference.
Rickard
28 June 2014, 11:41
I figured out that the problem was that I had TriggerOnCGIstatus = yes, which I need for another app that runs on that server, guess I'll have to split them up on different domains.
This topic has been closed.