-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 401 when using DAVDroid (1.11.5-ose) with Nextcloud (13.0.5) and 2FA #10404
Comments
GitMate.io thinks possibly related issues are #10350 (13.0.5), #8754 (White page / Error 500 after Upgrade from Nextcloud 12.0.4 to 13 ), #3119 (Default calendar not showing after Upgrade to Nextcloud 11.0.1), #9204 (Nextcloud upgrade to version 13.0.1), and #9858 (Error while upgrading auf NextCloud 13.0.4). |
Any news on this bug? |
Still observing this on latest Nextcloud 14. Makes CalDAV sync unusable if 2FA is enabled. |
This should work and we just tested and could not reproduce this. With app passwords it does just work fine. With multiple accounts, servers and android devices with DAVdroid. As this seems to be a setup issue I would like to ask you to raise your question in the forums: https://help.nextcloud.com If you wish support with setup issues from Nextcloud GmbH we offer this as part of the Nextcloud subscription. Learn more about this at https://nextcloud.com/enterprise/ |
Unfortunately, I have the very same issue as @wildy |
I was also suffering from this issue with device-specific passwords, and using my standard password it strangely worked. It turns out that the device-specific password also includes the '-' dashes between the characters, which is really non-intuitive. By also entering the dashes it works. I think this really goes against how everything else I know works, where the dashes are just to help typing and are not actually part of the password. If this is a "feature" I think it should at the very least be clearly stated on the documentation. |
@rmsc Please open a feature request in this very same repo and don't hijack closed issues. Thx! |
@georgehrke thanks, I will open a feature request. Btw I didn't consider this hijacking, as the subject/problem is exactly the same as reported, and no solution was ever provided. |
Steps to reproduce
Expected behaviour
DAVDroid synchronizes contacts and calendar successfully
Actual behaviour
DAVDroid hangs for a while with the 'Discovering configuration' message; I can see the following messages in the apache log:
10.38.0.2 - {{ login }} [26/Jul/2018:15:12:37 +0300] "PROPFIND /remote.php/dav HTTP/1.1" 401 299 "-" "DAVdroid/1.11.5-ose (2018/07/01; dav4android; okhttp/3.10.0) Android/7.0"
I used Wireshark to dump the (plain-text) traffic between my nginx proxy and the NC apache web server and see this:
This should indicate that the login was attempted with a standard password, but I used an application password with DAVDroid.
Server configuration
Operating system: Debian stretch, nextcloud 13.0.5 installed via latest docker image
Web server: Apache/2.4.25 (Debian) on nextcloud container; nginx/1.10.3 on proxy host
Database: 10.3.8-MariaDB
PHP version: 7.1.20
Nextcloud version: 13.0.5
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from:
Signing status:
Signing status
No errors have been found.List of activated apps:
App list
Enabled:
Disabled:
Nextcloud configuration:
Config report
{
"system": {
"overwritehost": "cloud.hiball.koshaq.net",
"overwriteprotocol": "https",
"trusted_proxies": "REMOVED SENSITIVE VALUE",
"overwritecondaddr": "^172\.24\.6\.1$",
"htaccess.RewriteBase": "/",
"memcache.local": "\OC\Memcache\APCu",
"apps_paths": [
{
"path": "/var/www/html/apps",
"url": "/apps",
"writable": false
},
{
"path": "/var/www/html/custom_apps",
"url": "/custom_apps",
"writable": true
}
],
"instanceid": "REMOVED SENSITIVE VALUE",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"cloud.hiball.koshaq.net"
],
"datadirectory": "REMOVED SENSITIVE VALUE",
"overwrite.cli.url": "https://cloud.hiball.koshaq.net",
"dbtype": "mysql",
"version": "13.0.5.2",
"dbname": "REMOVED SENSITIVE VALUE",
"dbhost": "REMOVED SENSITIVE VALUE",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"installed": true,
"maintenance": false,
"loglevel": 2
}
}
Are you using external storage, if yes which one: no
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser:
DAVdroid/1.11.5-ose (2018/07/01; dav4android; okhttp/3.10.0) Android/7.0"
Operating system:
Android 7.0
Logs
Web server error log
Web server error log
{{ ip }} - {{ login }} [26/Jul/2018:15:14:12 +0300] "PROPFIND /.well-known/caldav HTTP/1.1" 301 178 "-" "DAVdroid/1.11.5-ose (2018/07/01; dav4android; okhttp/3.10.0) Android/7.0"
{{ ip }} - {{ login }} [26/Jul/2018:15:14:12 +0300] "PROPFIND /remote.php/dav HTTP/1.1" 401 299 "-" "DAVdroid/1.11.5-ose (2018/07/01; dav4android; okhttp/3.10.0) Android/7.0"
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: