You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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;
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.
The text was updated successfully, but these errors were encountered: