Bug 180657

Summary: /etc/ldap.conf should block lookup of secondary groups for the ldap user by default
Product: [Fedora] Fedora Reporter: Jay Fenlason <fenlason>
Component: nss_ldapAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: andreas.bierfert, jfeeney
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 248-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-09 19:27:25 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:
Bug Depends On:    
Bug Blocks: 180295    

Description Jay Fenlason 2006-02-09 19:15:16 UTC
Description of problem: 
During system startup, the ldap init script attempts to run serveral commands 
as the ldap user.  If nsswitch.conf points at the ldap server, startup will be 
delayed until nss_ldap gives up on trying to contact the server that isn't up 
yet. 
 
Version-Release number of selected component (if applicable): 
 
 
How reproducible: 
Always 
 
Steps to Reproduce: 
1.configure /etc/nsswitch.conf to use "files ldap" for groups. 
2.configure /etc/ldap.conf to point to the ldap server on this machine 
3.reboot 
4.observe that the machine takes almost forever to boot. 
   
Actual results: 
Very long boot time 
 
Expected results: 
Normal boot time 
 
Additional info: 
The easiest solution is to add 
nss_initgroups_ignoreusers ldap 
to the default /etc/ldap.conf, possibly with a comment explaining what this 
field does, and why we're using it.

Comment 1 Nalin Dahyabhai 2006-02-09 19:27:25 UTC
Also adding "root", because it's a common case.  Fixing for 248-2.