-
-
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
Show LDAP lock out message #6010
Comments
Additionally, the app just spams LDAP with thousands of failed login attempts after the account returns locked. |
This is more caused by our mobile or desktop apps which try to reauthenticate instead of showing a proper error message I suppose. |
Ah right - this could also be another reason. @tobiasKaminsky @AndyScherzinger @marinofaggiana How do you handle if the login fails with invalid credentials, that worked before? |
We show the login screen again, with prefilled server url. |
iOS as well |
Yep the iOS app does not ask for new username and password:
Sometimes a badge at the top appears with "Wrong username and password". |
mmm I detect the 401 error and show the changepassword view .... this is strange ... I don't understand |
The Android app shows it properly after two 401 (but both seem to have started at around the same time):
|
With the combination of OpenLDAP + password policies enabled in Nextcloud, HTTP response 302 is returned via API and in a browser an actual redirection to the password renewal page is triggered. However if the number of grace logins is exceeded (e.g. due to an app trying to login infinitely), a 401 response will be returned as usual. So an app could parse the response code and avoid spamming LDAP with failed login attempts. About showing an appropriate error during login when the password is expired: This hasn't been possible (at least for OpenLDAP users) because PHP doesn't support parsing the error in this case. There is no way to distinguish whether a login failed due to wrong password or password expiry. However, whether it's possible to recognize a locked account during login might need to be investigated...looks unlikely though. |
Do clients need something to do here? |
cc @blizzz ? |
There is not extended info right now. It might be that some newer PHP version support getting that info, but I am not aware atm. |
This was noticed on an stable11 instance.
cc @nextcloud/ldap
The text was updated successfully, but these errors were encountered: