RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1536135 - Increase password value buffer size
Summary: Increase password value buffer size
Keywords:
Status: CLOSED DUPLICATE of bug 1425790
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nss-pam-ldapd
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jakub Hrozek
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-18 16:55 UTC by Ming Davies
Modified: 2021-03-11 16:57 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-20 10:10:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ming Davies 2018-01-18 16:55:00 UTC
Description of problem:
The latest package for nss-pam-ldap throw an access denied error if an user's password is over a certain length. This has been correct in upstream releases: https://arthurdejong.org/nss-pam-ldapd/release-0-8-14

Customer would like RedHat to fix the issue in our latest nss-pam-ldap package.


Version-Release number of selected component (if applicable):
nss-pam-ldapd.x86_64                                             0.8.13-8.el7

How reproducible:
The issue can be easily reproduced.

Steps to Reproduce:
1. Create an open ldap instance
2. Create a ldap user:
dn: uid=esmith,ou=users,dc=mytest,dc=com
uid: esmith
cn: Evie Smith
sn: Smith
mail: esmith
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
shadowMin: 0
shadowMax: 99999
shadowWarning: 7
loginShell: /bin/bash
uidNumber: 11586
gidNumber: 11585
homeDirectory: /home/esmith

3. Assign a 63characters password to the user esmith
# ldappasswd -s ykisqc8s4loz+ZL5wDP4l4TU5ZRkdrxQBUEfT0OSsPWUXZMN5JqHr6HNSQq9DRS -D "cn=manager,dc=mytest,dc=com" -w password -x "uid=esmith,ou=users,dc=mytest,dc=com"

4. ssh into an openldap client, all ok.

5. Assign a 64characters password to the user esmith
# ldappasswd -s ykisqc8s4loz+ZL5wDP4l4TU5ZRkdrxQBUEfT0OSsPWUXZMN5JqHr6HNSQq9DRSb -D "cn=manager,dc=mytest,dc=com" -w password -x "uid=esmith,ou=users,dc=mytest,dc=com"

6.  ssh into an openldap client:
# ssh esmith@localhost
esmith@localhost's password: 
Permission denied, please try again.

Corresponding logs
# tail /var/log/messages
...
Jan 18 16:35:23 tigger nslcd[2581]: [edbdab] client supplied argument 1 bytes too large

# tail /var/log/secure
Jan 18 16:35:23 tigger unix_chkpwd[2646]: password check failed for user (esmith)
Jan 18 16:35:23 tigger sshd[2644]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost  user=esmith
Jan 18 16:35:23 tigger sshd[2644]: pam_ldap(sshd:auth): error reading from nslcd: Connection reset by peer
Jan 18 16:35:26 tigger sshd[2644]: Failed password for esmith from ::1 port 42924 ssh2

Actual results:


Expected results:


Additional info:

Comment 2 Jakub Hrozek 2018-01-18 19:12:09 UTC
Thank you for the bug report. I think this may be a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1425790 which is already proposed for 7.5.0

Would the customer be interested in testing out the 7.5 packages to see if the backport fixes the problem for them?

Comment 9 Jakub Hrozek 2018-03-20 10:10:47 UTC

*** This bug has been marked as a duplicate of bug 1425790 ***


Note You need to log in before you can comment on or make changes to this bug.