Bug 328361 - Account has same username as group name failed to login LDAP enabled machine
Summary: Account has same username as group name failed to login LDAP enabled machine
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: nss_ldap
Version: 5.0
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: Nalin Dahyabhai
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-10-11 20:11 UTC by Simon Gao
Modified: 2010-07-01 17:08 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-01 17:08:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Simon Gao 2007-10-11 20:11:40 UTC
Description of problem:

When a user has the same username as group name in LDAP directory, the user
can't authenticate successfully when trying to log into the LDAP enabled machine
either by console or ssh.

If duplicate the account, and then change username and uid, then the same
password works fine.

Version-Release number of selected component (if applicable):

This happens to RHEL5 only. RHEL4.x works fine. 

2.6.18-8.1.8.el5xen
nss_ldap-253-3


How reproducible:


Steps to Reproduce:
1. Create an account with a username same as a primary group name in LDAP.
2. Configure /etc/ldap.conf, /etc/openldap/ldap.conf
3. Try log into the machine as the user


3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Nalin Dahyabhai 2007-10-12 15:26:36 UTC
I can't reproduce this here with a test user whose primary group has the same
name as the user, using either pam_ldap or pam_krb5 for checking passwords.

Are you also using a different module which might be denying the user's attempts
to log in?  Can you attach the contents of your /etc/ldap.conf,
/etc/pam.d/login, /etc/pam.d/sshd, and /etc/pam.d/system-auth files?  Is there
anything in /var/log/messages or /var/log/secure which might provide a clue?

Comment 2 Dmitri Pal 2010-07-01 17:08:42 UTC
Closing. If you have additional data please reopen.


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