Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 111710 - pam_filter option does not accept a valid LDAP filter
pam_filter option does not accept a valid LDAP filter
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: nss_ldap (Show other bugs)
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Nalin Dahyabhai
Jay Turner
Depends On:
  Show dependency treegraph
Reported: 2003-12-09 00:09 EST by jeffrey.bird
Modified: 2015-01-07 19:07 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-10-19 15:32:19 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description jeffrey.bird 2003-12-09 00:09:15 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031120

Description of problem:
When specifying a filter for the pam_filter option in /etc/ldap.conf,
you cannot use a properly defined LDAP filter. For example, to limit a
users to ones that have a host attribute set for the host they are
trying to log into you would expect to use (for example) the following:


This definition will not allow a match for the user. If the filter is
specified as

pam_filter &(objectclass=posixAccount)(objectclass=account)(host=thehost)

ie without the outermost '()' it will work as expected. 

This behaviour is not documented anywhere in the nss_ldap or RedHat

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

How reproducible:

Steps to Reproduce:
1. Modify /etc/ldap.conf as above (first case)
2. Attempt to login to system

Actual Results:  Login will be refused.

Expected Results:  User logged in.

Additional info:
Comment 1 RHEL Product and Program Management 2007-10-19 15:32:19 EDT
This bug is filed against RHEL 3, which is in maintenance phase.
During the maintenance phase, only security errata and select mission
critical bug fixes will be released for enterprise products. Since
this bug does not meet that criteria, it is now being closed.
For more information of the RHEL errata support policy, please visit:
If you feel this bug is indeed mission critical, please contact your
support representative. You may be asked to provide detailed
information on how this bug is affecting you.

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