Bug 1497761
Summary: | Incorrect password tries to bind to all domain controllers and locks user out | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | aheverle |
Component: | nss-pam-ldapd | Assignee: | Jakub Hrozek <jhrozek> |
Status: | CLOSED ERRATA | QA Contact: | Ondrej Moriš <omoris> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.4 | CC: | jhrozek, omoris, pkis |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | nss-pam-ldapd-0.8.13-11.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-04-10 17:24:59 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
aheverle
2017-10-02 15:31:31 UTC
We do plan on updating nss_pam_ldapd in 7.5, therefore devel_ack. Thank you for pointing out the upstream commit. Successfully reproduced and verified on all supported architectures except ppc64le on RHEL-ALT. OLD (nss-pam-ldapd-0.8.13-8.el7) ================================ :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: Test :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: # Sanity check. :: [ PASS ] :: Command 'getent passwd ldapuser' (Expected 0, got 0) # SSH with correct password, only first server should be queried! :: [ PASS ] :: Command 'ssh_cmd ldapuser x whoami' (Expected 0, got 0) :: [ PASS ] :: File '/tmp/ldap-test-server1/slapd.log' should contain 'BIND dn="uid=ldapuser,dc=my-domain,dc=com" method=128' :: [ PASS ] :: File '/tmp/ldap-test-server2/slapd.log' should not contain 'BIND dn="uid=ldapuser,dc=my-domain,dc=com" method=128' :: [ PASS ] :: File '/tmp/ldap-test-server3/slapd.log' should not contain 'BIND dn="uid=ldapuser,dc=my-domain,dc=com" method=128' # Clean logs for further testing. :: [ PASS ] :: Command 'echo '' >/tmp/ldap-test-server1/slapd.log' (Expected 0, got 0) :: [ PASS ] :: Command 'echo '' >/tmp/ldap-test-server2/slapd.log' (Expected 0, got 0) :: [ PASS ] :: Command 'echo '' >/tmp/ldap-test-server3/slapd.log' (Expected 0, got 0) # SSH with incorrect password to hit the issue, only first server should be queried! :: [ PASS ] :: Command 'ssh_cmd ldapuser y whoami' (Expected 2, got 2) :: [ PASS ] :: File '/tmp/ldap-test-server1/slapd.log' should contain 'BIND dn="uid=ldapuser,dc=my-domain,dc=com" method=128' :: [ FAIL ] :: File '/tmp/ldap-test-server2/slapd.log' should not contain 'BIND dn="uid=ldapuser,dc=my-domain,dc=com" method=128' :: [ FAIL ] :: File '/tmp/ldap-test-server3/slapd.log' should not contain 'BIND dn="uid=ldapuser,dc=my-domain,dc=com" method=128' :: [ LOG ] :: Duration: 11s :: [ LOG ] :: Assertions: 10 good, 2 bad :: [ FAIL ] :: RESULT: Test NEW (nss-pam-ldapd-0.8.13-16.el7) ================================= :: [ PASS ] :: Command 'getent passwd ldapuser' (Expected 0, got 0) :: [ PASS ] :: Command 'ssh_cmd ldapuser x whoami' (Expected 0, got 0) :: [ PASS ] :: File '/tmp/ldap-test-server1/slapd.log' should contain 'BIND dn="uid=ldapuser,dc=my-domain,dc=com" method=128' :: [ PASS ] :: File '/tmp/ldap-test-server2/slapd.log' should not contain 'BIND dn="uid=ldapuser,dc=my-domain,dc=com" method=128' :: [ PASS ] :: File '/tmp/ldap-test-server3/slapd.log' should not contain 'BIND dn="uid=ldapuser,dc=my-domain,dc=com" method=128' :: [ PASS ] :: Command 'echo '' >/tmp/ldap-test-server1/slapd.log' (Expected 0, got 0) :: [ PASS ] :: Command 'echo '' >/tmp/ldap-test-server2/slapd.log' (Expected 0, got 0) :: [ PASS ] :: Command 'echo '' >/tmp/ldap-test-server3/slapd.log' (Expected 0, got 0) :: [ PASS ] :: Command 'ssh_cmd ldapuser y whoami' (Expected 2, got 2) :: [ PASS ] :: File '/tmp/ldap-test-server1/slapd.log' should contain 'BIND dn="uid=ldapuser,dc=my-domain,dc=com" method=128' :: [ PASS ] :: File '/tmp/ldap-test-server2/slapd.log' should not contain 'BIND dn="uid=ldapuser,dc=my-domain,dc=com" method=128' :: [ PASS ] :: File '/tmp/ldap-test-server3/slapd.log' should not contain 'BIND dn="uid=ldapuser,dc=my-domain,dc=com" method=128' :: [ LOG ] :: Duration: 12s :: [ LOG ] :: Assertions: 12 good, 0 bad :: [ PASS ] :: RESULT: Test For more details see TCMS TC and RHEL-7.5.0 errata test plan runs. 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, 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-2018:0935 |