Closed benjaminfrank closed 8 years ago
This has been there in earlier versions. That behavior is not really incorrect.
There are two things vdirsyncer doesn't know about how to do authentication beforehand:
basic
and digest
. digest
was established as a "more secure" method, but with HTTPS deployed, they don't differ in security at all. The server dictates which authentication scheme has to be used.So, vdirsyncer sends an unauthenticated request. If the server returns 401, a password is required. In that case, the response also contains a header with the authentication method dictated by the server.
There are many clients that just send the password using the basic
method, without asking the server first. Of course this is more performant, and also works with most servers. But not with all, at least in theory. If your server supports it, set this in your storage config:
auth = basic
Note that vdirsyncer did initially have auth = basic
as default. See https://github.com/pimutils/vdirsyncer/issues/33.
Interesting, I never saw those unauthenticated queries before. but that might have been due to my logging or something. your suggestion works as expected. Thanks a lot!
Since 0.10.0 I see some strange logs in my caldav/carddav server (owncloud via apache). It seems all requests are done twice: first all requests unauthenticated (HTTP status 401, no username in logs) and then all authenticated (an thus succeeding). Hence vdirsyncer does not complain but finishes succesfully. Any idea what might be wrong?
vdirsyncer -vdebug
for debug output.