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
{{ message }}
Repository navigation
[10.0.4] Sessions created from application passwords result in "Login failed" errors when used #30157
Prior to 10.0.4, there was a problem with application password and the sessions left behind after deletion (see #28553). This is most likely a collateral of the new logic for the fix on #28879 (lacking a migration strategy maybe)
The clients send 2 auth. methods (required) on the headers for all their requests: Authorization: Basic and Cookies.
Steps to reproduce
Setup lockout mechanism
Create an application password on a 10.0.4 installation
Use it to log in to the Desktop client
Observe the server logs
Expected behavior
Everything goes smooth
Actual behavior
See #30157 (comment); each client request results in 2 entries on the logs:
One that causes a Login failed in core, that can be attributed to the Cookie -> the issue here; this makes password lockout mechanisms to trigger if present (see 0)
Using Version 2.3.0-nightly20160929 (build 3715) OSX Desktop Client
oC 10.0.3 --> create app password A and app password B
Log in in Desktop Client with both app password.
Delete Password A
Via updater, update to 10.0.4
Result:
When I deleted the app password A, that account should have logged out, but it didn't
If I manually log out from both accounts and I try to log in again. B app password wokrs fine but A (that was the one deleted) is no longer valid
But the ticket says: #30157 (comment)
Actual behavior
Both A and B don't work as application passwords (no account can be logged in with them, even when B is still present in the DB)
It's unclear just yet how to reproduce this. I believe my original repro steps were conditioned on using a sync client pre-2.4: without owncloud/client#5830, same accounts on the client got just one entry on the keychain storage, leaving the last one used there (shadowing the one that was not removed on the webUI). I'm dropping sev. because of this.
So one thing I think this might be is yet another display of #29779 i.e. (application password) basic auth replies include cookies, client storing these cookies & uses them as headers for next requests. And either core gives priority to Cookie headers over Authorization or uses them as fallback mechanism (like it also happens in owncloud/oauth2#103).
Session cookies are removed on client logout/close - owncloud/client#5383 - this together with previous facts is the reason why the accounts are still connected even when the app password was removed (Authorization: Basic ... is no longer valid while client-stored Cookie: oc_sessionPassphrase=... is).
This behavior together with owncloud/updater#457 (running clients during server upgrades) might have something to do with the "Related Issues" in #30157 (comment).
If someone ever manages to reproduce this, we need the logs from the password failure.
If this is something like the CSRF issue here owncloud/android#1964 (comment), it might look like the password expired when it fact it's something else that is just getting in the way of authentication. To the user, the password prompt let them believe that the app password is not valid any more. In the case of my wife (in that ticket), she tried logging in with her regular password on the Android app and it didn't work either.
changed the title [-]10.0.4 upgrade invalidates all application passwords[/-][+][10.0.4] Sessions created from application passwords result in "Login failed" errors when used[/+]on Jan 30, 2018
I implemented it manually (2 files, without test file) on OC v10.0.6.1 a few seconds ago. I´m paying attention to the clients and OC log file, will report soon if it fixed the issue.
Update: Log empty regarding those issue for more than 30 minutes now, so: cautious all-clear signal.
Activity
ownclouders commentedon Jan 16, 2018
GitMate.io thinks the contributor most likely able to help you is @PVince81.
davitol commentedon Jan 25, 2018
Using Version 2.3.0-nightly20160929 (build 3715) OSX Desktop Client
Result:
When I deleted the app password A, that account should have logged out, but it didn't
If I manually log out from both accounts and I try to log in again. B app password wokrs fine but A (that was the one deleted) is no longer valid
But the ticket says: #30157 (comment)
davitol commentedon Jan 25, 2018
Other scenario tested:
Using Android 2.5.0 app
SamuAlfageme commentedon Jan 25, 2018
It's unclear just yet how to reproduce this. I believe my original repro steps were conditioned on using a sync client pre-2.4: without owncloud/client#5830, same accounts on the client got just one entry on the keychain storage, leaving the last one used there (shadowing the one that was not removed on the webUI). I'm dropping sev. because of this.
So one thing I think this might be is yet another display of #29779 i.e. (application password) basic auth replies include cookies, client storing these cookies & uses them as headers for next requests. And either core gives priority to
Cookieheaders overAuthorizationor uses them as fallback mechanism (like it also happens in owncloud/oauth2#103).Session cookies are removed on client logout/close - owncloud/client#5383 - this together with previous facts is the reason why the accounts are still connected even when the app password was removed (
Authorization: Basic ...is no longer valid while client-storedCookie: oc_sessionPassphrase=...is).I'm also reopening #28553.
This behavior together with owncloud/updater#457 (running clients during server upgrades) might have something to do with the "Related Issues" in #30157 (comment).
PVince81 commentedon Jan 25, 2018
Note: my upgrade was done with distro packages and proper maintenance mode, not updater
PVince81 commentedon Jan 25, 2018
If someone ever manages to reproduce this, we need the logs from the password failure.
If this is something like the CSRF issue here owncloud/android#1964 (comment), it might look like the password expired when it fact it's something else that is just getting in the way of authentication. To the user, the password prompt let them believe that the app password is not valid any more. In the case of my wife (in that ticket), she tried logging in with her regular password on the Android app and it didn't work either.
[-]10.0.4 upgrade invalidates all application passwords[/-][+][10.0.4] Sessions created from application passwords result in "Login failed" errors when used[/+]18 remaining items
PVince81 commentedon Feb 26, 2018
#30591 was merged now, close ?
DeepDiver1975 commentedon Feb 26, 2018
❓
bcutter commentedon Feb 26, 2018
I implemented it manually (2 files, without test file) on OC v10.0.6.1 a few seconds ago. I´m paying attention to the clients and OC log file, will report soon if it fixed the issue.
Update: Log empty regarding those issue for more than 30 minutes now, so: cautious all-clear signal.
Emil-G commentedon Feb 27, 2018
Seems to have solved the issue of getting kicked out of LDAP here. Cheers 👍
bcutter commentedon Feb 27, 2018
Update: Nope. Even all the
Warning core Login failed: 'Username' (Remote IP: '192.168.178.24') a day agoare gone now, there still are
every hour.
DeepDiver1975 commentedon Feb 27, 2018
I am working on a solution to fix the last log entries.
DeepDiver1975 commentedon Mar 1, 2018
#30421
lock commentedon Jul 30, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.