-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Active Directory password change issues #10809
Comments
GitMate.io thinks possibly related issues are #3565 (Improve change password dialogue), #422 (Password Protected Shared Directories Upon Opening Are Buggy), #8356 (Unable to change forgotten password), #7378 ([personal settings] Move "Change password" to "Security"-settings ), and #9989 (User should change his password after a certain time). |
Interesting, as in any scenario the configured agent is being used to perform that action.
The cache is not involved with the login process. A bind against the LDAP server is necessary and you should be also able to spot such a request against AD. AD, typically, allows authentication with old and new password for a while… either it's replication or (for NTLM – i do not know how they treat LDAP binds internally) one hour by default. |
As there is no feedback since a while I will close this ticket. If this is still happening please feel free to reopen. |
Perhaps there is indeed a bug in Nextcloud (noticed e.g. in 17.0.1), that for a password change operation, nextcloud searches the user by UUID, but it does the search in a wrong way: by using configured "login attributes" (e.g. name/email). But these attributes do not have a UUID, so the user is not found (so nothing can be done for the user, e.g. I guess even the old password cannot be verified before starting to update to a new one). WORKAROUND: Details here: https://help.nextcloud.com/t/users-unable-to-change-password-active-directory-ldap/44412/9 |
I see that you reopened the ticket. I have edited my previous comment, so that it is more clear what is wrong and I added a workaround. |
fix in #21106 |
Steps to reproduce
Expected behaviour
Password should change, cache should be cleared. User should no longer be able to log in with old password.
Actual behaviour
For a Nextcloud admin, the password changes and is updated in Active Directory. For a Nextcloud AD user, the message "Wrong password" is displayed when attempting a password change, and the password is not updated.
After password is updated (in this case, currently only possible by an admin), the user can still log in with both the old and new passwords until the caching service is restarted or cache is cleared. I did not test waiting for the cache to expire, however.
Server configuration
Operating system: Ubuntu 18.04
Web server: Apache 2.4.29
Database: MySQL 5.7.23
PHP version: 7.2.7
Nextcloud version: Nextcloud 14 beta 4
Updated from an older Nextcloud/ownCloud or fresh install: Updated from Nextcloud 13
Where did you install Nextcloud from: Internet archive
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: SMB is configured but not being used.
Are you using encryption: Access to the site is encrypted, data location is not encrypted
Are you using an external user-backend, if yes which one: Active Directory
LDAP configuration (delete this part if not used)
LDAP config
Client configuration
Browser: Safari 11.1
Operating system: MacOS 10.13.4
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: