Bug 70994 - apache does not use nsswitch.conf to find users for 'User' directive
Summary: apache does not use nsswitch.conf to find users for 'User' directive
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: apache
Version: 7.3
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-08-07 17:28 UTC by bastiaan
Modified: 2007-04-18 16:45 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-08-07 17:29:00 UTC
Embargoed:


Attachments (Terms of Use)

Description bastiaan 2002-08-07 17:28:55 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/0

Description of problem:
If httpd.conf has a VirtualHost section containing a 'User x' directive, apache
will not find user 'x' if this user has been defined in an external (LDAP)
database rather  than /etc/passwd.  

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


How reproducible:
Always

Steps to Reproduce:
1. Configure your system to use an LDAP user database 
2. Create an apache configuration with a VirtualHost section containing
directive 'User testuser'
2. Add 'testuser' to the LDAP database 
3. (Re)start apache
	

Actual Results:  Apache reports in /var/log/apachage/error_log

[Wed Aug  7 10:46:29 2002] [notice] SIGHUP received.  Attempting to restart
httpd: bad user name testuser


Expected Results:  It should have obtained the user information from the LDAP
database and started properly.
 

Additional info:

'testuser' is otherwise fully usable as a user account.

The problem can be worked around by adding 'testuser' to /etc/passwd. 
Apache does not appear to have a problem with 'Group testuser'.

Comment 1 bastiaan 2002-08-07 17:57:52 UTC
Hmm, on closer look this may very well have been caused by an update of the
nss_ldap RPM. This may have confused the running apache instance, causing it not
to shutdown. 
It appears to work properly now. Also the apache 1.3.26 source shows that
getpwnam() is used to obtain the user id, which should be OK.

I'll close this bug for now.

Sorry for the inconvinience!



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