Bug 118239

Summary: If LDAP is enabled, and LDAP is down, box lockout results
Product: Red Hat Enterprise Linux 3 Reporter: Graham Leggett <minfrin>
Component: authconfigAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED DUPLICATE QA Contact: Brian Brock <bbrock>
Severity: high Docs Contact:
Priority: high    
Version: 3.0CC: mattdm
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-08 13:33:48 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:

Description Graham Leggett 2004-03-14 08:35:30 UTC
The authconfig tool is used to enable LDAP support. If the LDAP server
is down or inaccessible, it is impossible to log into the box, even
from the console. Backup LDAP servers are not an option, as there is
no guarantee that the network between the backup LDAP server and the
box will be operational.

In our case, the LDAP server is in Johannesburg, South Africa, and the
client machine is in San Antonio in Texas, so dropping to single mode
to fix a downed LDAP server is not an option.

The following fix solves the problem. Add an additional line to
system-auth marked with "<--" like so:

#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth        required      /lib/security/$ISA/pam_env.so
auth        sufficient    /lib/security/$ISA/pam_unix.so likeauth nullok
auth        sufficient    /lib/security/$ISA/pam_ldap.so use_first_pass
auth        required      /lib/security/$ISA/pam_deny.so
 
account     required      /lib/security/$ISA/pam_unix.so
account     sufficient    /lib/security/$ISA/pam_localuser.so <--
account     [default=bad success=ok user_unknown=ignore
service_err=ignore system_err=ignore] /lib/security/$ISA/pam_ldap.so
 
This allows the system to fall back on /etc/passwd should the LDAP
server be dead for any reason.

Comment 1 David Lawrence 2004-03-15 20:21:29 UTC
Changing product and version.

Comment 2 Matthew Miller 2004-03-30 15:08:52 UTC

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