-
Notifications
You must be signed in to change notification settings - Fork 65
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
checkToken verification fails when IMAP is used as backend. #70
Comments
I previously updated a core issue: https://github.com/nextcloud/server/issues/11120 I will reproduce the key findings here: So after several sessions of debug, we found lib/private/User/Session.php, line 680: function checkToken: 680 private function checkTokenCredentials(IToken $dbToken, $token) { Nextcloud is checking the password again after 5 minutes. Unfortunately, external_user must be missing something here, and the test always fails. As a result, the token is invalidated and the session must start again. As a mitigation (in order to avoid user's rage) we have changed the time to 5000 minutes: 685 if ($lastCheck > ($now - 60 * 5000)) { This is something we would rather don't do, as it opens the door to unsynced password problems. |
hmm, do you have the users only registered over user_external and not on an other user backend as well? |
Yes, we only use IMAP as backend, should we use more than one? |
no you explicitly should not have more than one backend which authenticates the same username... this issue reminds me of #3 which is caused by the admin having multiple backends (nextclouds own and user_external IMAP) for the same usernames... that's why I'm asking... @ChristophWurst do you have an idea what could be causing this? |
Then this issue is a real bug of user_external, and not a misconfiguration. |
@ediazcomellas considering that user_external only does the authentication itself and not the session management, it could also be an issue in the core of nextcloud... |
Steps to reproduce
Expected behaviour
User should be able to maintain the session open more than 5 minutes
Actual behaviour
Sessions are closed after 5 minutes
Affected Authentication backend
IMAP (at least)
Server configuration
0.6.1
Ubuntu 18.04
Apache
Mariadb
7.0.33
Nextcloud 15.0.7
Updated from previous version
The text was updated successfully, but these errors were encountered: