Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 784707

Summary: Allow for simple username in pam_member_attribute
Product: Red Hat Enterprise Linux 6 Reporter: Nalin Dahyabhai <nalin>
Component: sssdAssignee: Stephen Gallagher <sgallagh>
Status: CLOSED CURRENTRELEASE QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2CC: dpal, emersonkfuri, grajaiya, jgalipea, jhrozek, jplans, prc
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://bugzilla.padl.com/show_bug.cgi?id=238
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 782969 Environment:
Last Closed: 2012-01-30 13:38:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 782969    
Bug Blocks: 748818    

Description Nalin Dahyabhai 2012-01-25 21:22:37 UTC
+++ This bug was initially created as a clone of Bug #782969 +++

Created attachment 556141 [details]
Joerg Dorchain's patch to handle with a non-dn member

The value of pam_member_attribute is always compared to a DN. If the value is for example memberUid (posixGroup), the comparison should be made ​​with the username.

I found this patch in Debian forum that allows the administrator to choose whether to make the comparison by DN or username.

Ref.: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=341541

I think it would be interesting to incorporate this solution in nss_ldap on RHEL.

Thank you for your attention

Emerson Kfuri

--- Additional comment from nalin on 2012-01-25 16:21:00 EST ---

At this stage in the lifetime of RHEL 5, I don't know that we're going to add new features to this package, but I'll clone it for the later release.

Comment 1 Jakub Hrozek 2012-01-25 21:39:44 UTC
This is trivially enforced in SSSD by using the "simple" access provider. Because SSSD is the preferred component these days, I think we're going to need a justification before implementing this for pam_ldap as well.

Comment 3 Dmitri Pal 2012-01-30 13:38:46 UTC
This functionality is already available from SSSD which is the default component in RHEL 6.x for integration with central LDAP authentication servers. One can find more information about how to configure simple access provider in SSSD in sssd-simple(5) man pages. 

We will also expose it better in the documentation. A separate bug will be open.

This bug is moved to SSSD and closed in the current release.
There is no plan to add this functionality to pam_ldap.

Comment 4 Stephen Gallagher 2012-01-30 13:45:55 UTC
Bugzilla #748818 will track the documentation bug in Fedora (which will make its way into RHEL)