Problem with NC 12 and macOS CalDAV-Account

Dear all,

I tried to add the CalDAV-Account to a iMac 14.1 with macOS 10.12.5 for the first time and get always the message “Username/Passwort can’t be verified”

Server:
Nextcloud version: 12.0.0
Operating system and version: Ubuntu 16.04.1
Apache version: 2.4.18
PHP version: 7.0.18

Client:
Client: iMac 14.1
OS: macOS Sierra 10.12.5

I tried different combination of Domain and Link-Addresses “Manual” and “Advanced” with SSL.

Manual:
1.
https://SUBDOMAIN.DOMAIN.COM:PORT/remote.php/dav/calendars/USERNAME/CALENDARNAME/

https://SUBDOMAIN.DOMAIN.COM:PORT/remote.php/dav/principals/users/USERNAME/

Advanced:
1.
Domain: https://SUBDOMAIN.DOMAIN.COM
or
Domain: SUBDOMAIN.DOMAIN.COM
or
Domain: http://SUBDOMAIN.DOMAIN.COM
Path: /remote.php/dav/calendars/USERNAME/CALENDARNAME/
Port: 20xxx

Domain: https://SUBDOMAIN.DOMAIN.COM
Path: /remote.php/dav/principals/users/USERNAME/
Port: 20xxx

Always the same Error-Message: “Username/Passwort can’t be verified”

With Windows CalDAV-Clients it works perfect.

Has anyone an idea what is going wrong?
Thanks for help.

You might read here:

For me it s working on 10.12.5 like this

Manual :
login
Password
https://myserveraddress.com

But you must have before your htaccess functionnal. Because it ensure the redirection to the wellknown address.

Thanks for the hint.
I’ve already used this patch to solve connection-problems with Thunderbird/Lightning calendar.
Now it works fine with Thunderbird/Lightning.

But there is no way to connect from macOS - Internet-Account - CalDAV-Account.
Always the same Error-Message: “Username/Password can’ t be verified”

Did you enable two authentification on thos accounts you have ?

Do you have a real trusted ssl cert ?

Thanks for your questions.
We solved the problem by applying the hint from nickvergessen in the following Question:

URL: NC12 Authentication issue with Cardav, Caldav and Sogo connector

Hint:

apps/dav/appinfo/v1/webdav.php

$authPlugin->addBackend($bearerAuthPlugin);

with:

// FIXME I disabled this myself following NC12 Authentication issue with Cardav, Caldav and Sogo connector $authPlugin->addBackend($bearerAuthPlugin);

apps/dav/lib/Server.php

$authPlugin->addBackend($bearerAuthBackend);

with:

// FIXME I disabled this myself following NC12 Authentication issue with Cardav, Caldav and Sogo connector $authPlugin->addBackend($bearerAuthBackend);