Bug 103461

Summary: local root login failure when LDAP server is not reachable
Product: [Retired] Red Hat Linux Reporter: Need Real Name <redhat>
Component: nss_ldapAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED DUPLICATE QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: high    
Version: 8.0CC: mattdm, srevivo, tjarls
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-21 18:58:21 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 Need Real Name 2003-08-31 10:48:54 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030731
Mozilla Firebird/0.6.1

Description of problem:
Seen on both RH-7.3 and RH-8.0 stations:

When using LDAP authentication, there is a root login failure when the LDAP
server is down or when there is no connection to the LDAP server. The user root
is NOT in the LDAP database but in /etc/passwd. "nsswitch.conf" says:

passwd:     files ldap
shadow:     files ldap
group:      files ldap

Despite these entries, when logging in as root, the machine queries the LDAP
server while it should not do that, it first has to look in "files". But more
severe is that when the LDAP is down, the machine becomes fully inaccessible. A
reboot "init=/bin/sh" is necessary to switch off LDAP auth in order to get root
access to the machine.

Richard

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


How reproducible:
Always

Steps to Reproduce:
1. stop the connection to the LDAP server
2. login as root on console: failure
3. start the connection to the LDAP server
4. login as root: success
    

Additional info:

Comment 1 Need Real Name 2003-08-31 11:10:10 UTC
Btw: this works around the problem, but IMHO the entries in nsswitch.conf file
should be followed, the "files" should preceed over "ldap".

in /etc/pam.d/system-auth, add "authinfo_unavail=ignore" option:

Original line:
###account     [default=bad success=ok user_unknown=ignore service_err=ignore
system_err=ignore] /lib/security/pam_ldap.so

New line:
account     [default=bad success=ok user_unknown=ignore service_err=ignore
system_err=ignore authinfo_unavail=ignore] /lib/security/pam_ldap.so

Comment 2 Charles Lopes 2004-03-30 12:31:31 UTC
This work around did not work for me. In addition I had to insert the
following line between "account .. pam_unix.so" and "account ..
pam_ldap.so":
account     sufficient    /lib/security/$ISA/pam_localuser.so

Shouldn't this be reported under authconfig instead of nss_ldap?

Comment 3 Charles Lopes 2004-03-30 13:30:14 UTC
I should have checked before comenting on this bug. Bug 118239 offers
the same fix in a more detailed way. Also the same bug seems to have
been reported many times:
#55193
#63631
#63717
#77575
#86606

Still present in Fedora Core 2 test 2


Comment 4 Matthew Miller 2004-03-30 15:07:31 UTC

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

Comment 5 Red Hat Bugzilla 2006-02-21 18:58:21 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.