Bug 1795220
Summary: | Expecting appropriate error message when new password length is less than 8 characters when ldap_pwmodify_mode = ldap_modify in sssd.conf | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Madhuri <mupadhye> |
Component: | sssd | Assignee: | Pavel Březina <pbrezina> |
Status: | CLOSED ERRATA | QA Contact: | sssd-qe <sssd-qe> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 8.2 | CC: | atikhono, grajaiya, jhrozek, lslebodn, mzidek, pbrezina, sgoveas, thalman, tscherf |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | sync-to-jira | ||
Fixed In Version: | sssd-2.3.0-1.el8 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-11-04 02:04:37 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Madhuri
2020-01-27 13:18:21 UTC
Upstream ticket: https://pagure.io/SSSD/sssd/issue/4148 Upstream PR: https://github.com/SSSD/sssd/pull/979 * `master` * e4c6ebf6754dca194487f02b616018a860e5dbdf - sdap: provide error message when password change fail in ldap_modify mode * `sssd-1-16` * ddf0a59a610570111fadc391f104c29442e01ac8 - sdap: provide error message when password change fail in ldap_modify mode *** Bug 1710749 has been marked as a duplicate of this bug. *** Verified with: sssd-2.3.0-4.el8.x86_64 Steps to Reproduce: 1. Setup sssd client with the rhds server and enable passwordCheckSyntax on server [root@ipaqavma ~]# ldapsearch -xLLL -p 389 -h localhost -D "cn=Directory Manager" -w Secret123 -b "cn=config" | grep passwordCheckSyntax passwordCheckSyntax: on 2. [root@ci-vm-10-0-104-246 ~]# cat /etc/sssd/sssd.conf [sssd] config_file_version = 2 services = nss, pam domains = example1 [domain/example1] ldap_search_base = dc=example,dc=test id_provider = ldap auth_provider = ldap ldap_user_home_directory = /home/%u ldap_uri = ldaps://server.example.com ldap_tls_cacert = /etc/openldap/cacerts/cacert.pem use_fully_qualified_names = True debug_level = 9 ldap_pwmodify_mode = ldap_modify 3. Try to change password of a user [foo6@example1@ci-vm-10-0-104-246 /]$ passwd Changing password for user foo6@example1. Current Password: Password change failed. Server message: Old password not accepted. passwd: Authentication token manipulation error [foo6@example1@ci-vm-10-0-104-246 /]$ passwd Changing password for user foo6@example1. Current Password: New password: Retype new password: Password change failed. Server message: invalid password syntax - password must be at least 8 characters long passwd: Authentication token is no longer valid; new one required [foo6@example1@ci-vm-10-0-104-246 /]$ exit As getting proper error message when new password length is less than 8 characters. thus marking this as verified. Verified with: sssd-2.3.0-4.el8.x86_64 Steps to Reproduce: 1. Setup sssd client with the rhds server and enable passwordCheckSyntax on server [root@ipaqavma ~]# ldapsearch -xLLL -p 389 -h localhost -D "cn=Directory Manager" -w Secret123 -b "cn=config" | grep passwordCheckSyntax passwordCheckSyntax: on 2. [root@ci-vm-10-0-104-246 ~]# cat /etc/sssd/sssd.conf [sssd] config_file_version = 2 services = nss, pam domains = example1 [domain/example1] ldap_search_base = dc=example,dc=test id_provider = ldap auth_provider = ldap ldap_user_home_directory = /home/%u ldap_uri = ldaps://server.example.com ldap_tls_cacert = /etc/openldap/cacerts/cacert.pem use_fully_qualified_names = True debug_level = 9 ldap_pwmodify_mode = ldap_modify 3. Try to change password of a user [foo6@example1@ci-vm-10-0-104-246 /]$ passwd Changing password for user foo6@example1. Current Password: Password change failed. Server message: Old password not accepted. passwd: Authentication token manipulation error [foo6@example1@ci-vm-10-0-104-246 /]$ passwd Changing password for user foo6@example1. Current Password: New password: Retype new password: Password change failed. Server message: invalid password syntax - password must be at least 8 characters long passwd: Authentication token is no longer valid; new one required [foo6@example1@ci-vm-10-0-104-246 /]$ exit As getting proper error message when new password length is less than 8 characters. thus marking this as verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (sssd bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:4569 |