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:
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)