Bug 154854 - PAM account fails for local user when LDAP is unreachable
PAM account fails for local user when LDAP is unreachable
Status: CLOSED DUPLICATE of bug 109359
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: pam (Show other bugs)
4.0
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Tomas Mraz
Jay Turner
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-14 11:47 EDT by Shane A. Stillwell
Modified: 2015-01-07 19:09 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-04-18 04:41:29 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Shane A. Stillwell 2005-04-14 11:47:59 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050323 Firefox/1.0.2 Fedora/1.0.2-1.3.1

Description of problem:
I have two users in /etc/passwd (root, admin), the rest are in LDAP.  I have set the system to authenticate users via LDAP (using authconfig).

When LDAP is running everything works fine, but when LDAP is stopped, root can ssh in but the local user "admin" cannot.

The offending line in /etc/pam.d/system-auth is 
account     [default=bad success=ok user_unknown=ignore] /lib/security/$ISA/pam_ldap.so

After commenting this line out in system-auth, the admin user can now ssh in even when LDAP is down.  

Local users in /etc/passwd should not be denied access ssh (login) access when LDAP is down.


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

How reproducible:
Always

Steps to Reproduce:
1. Set up local (/etc/passwd) users and LDAP users
2. Set up server to authenticate via LDAP
3. Shutdown LDAP
4. Try to ssh in with non root local account.
5. You will keep getting a password prompt.
  

Actual Results:  When trying to SSH in as a non-root local user with LDAP down, keep getting a password prompt.

Expected Results:  Get ssh'd in.

Additional info:

This seems to be the offending line in /etc/pam.d/system-auth
account     [default=bad success=ok user_unknown=ignore] /lib/security/$ISA/pam_ldap.so
Comment 1 Tomas Mraz 2005-04-18 04:41:29 EDT

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

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