Open jangrewe opened 11 years ago
I was having this issue connecting to SabreDAV, it seems it was an issue with the digest authentication. I fixed this in caldav-client-v2.php in the DoRequest function where it said "TODO: add support for qop and related options" add the following after $A2:
$qop = $digest_data['qop'];
$nc = '00000001';
$opaque = $digest_data['opaque'];
$cnonce = substr('6346'.md5(time()),4,16); // This is just a random sort of thing, I made it up, not from anywhere.
$authdig = 'Authorization: Digest username="' . $this->user . '", realm="' . $digest_data['realm'] . '", nonce="' . $digest_data['nonce'] . '", uri="' . $url . '", response="' . md5($A1 . ":" . $digest_data['nonce'] . ':'.$nc.':'.$cnonce.':'.$qop. ":" . $A2) . '"';
$authdig .= ', opaque="'.$opaque.'"';
$authdig .= ', qop='.$qop.', nc='.$nc;
$authdig .= ', cnonce="'.$cnonce.'"';
$headers[] = $authdig;
This is based off this wikipedia article: http://en.wikipedia.org/wiki/Digest_access_authentication
Hope this helps
I've been using BackendIMAP with Dovecot for some time and am very happy with it, now i wanted to also add CalDAV and CardDAV via Baikal Server. The username and password are identical for both Backends, but for some reason the authentication fails to the CalDAV backend:
The CalDAV and CardDAV backends work fine with Thunderbird/Lightning and the right extensions.