LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-27-2006, 05:07 PM   #1
filburt1
Member
 
Registered: Mar 2004
Distribution: SUSE Linux 10.1 (Intel, 32-bit)
Posts: 45

Rep: Reputation: 15
Apache and system user authentication


I used to run Windows Server 2003 and IIS to serve web pages. It had a built-in feature where I could require authentication that checked against Active Directory, meaning if the user had an account on the domain, they had to enter that username and password to access the protected resource.

I have Apache 2.2.0 on SUSE Linux 10.1. Can I do something similar where I either put a .htaccess file in a directory to protect (or an entire virtual host, in this case), and it checks against system users, allowing ones I specify to view the resource?

To be clear, I do not want to password-protect a resource with an arbitrary username and password. Instead, I want Apache to consult the list of local system users. That way, changes I make to my local account (including my password) immediately affect Apache.

Thanks.
 
Old 07-27-2006, 05:19 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 122Reputation: 122
This page describes a mechanism for authentication against /etc/passwd and /etc/shadow.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C program to see user log on in system and print user with real user name also naveen245 Programming 2 12-21-2005 01:53 AM
user authentication triley Linux - Networking 3 06-06-2005 11:05 AM
LDAP authentication question - how do I know if a user is permitted to use a system ? Builder Linux - Enterprise 2 09-15-2004 07:12 AM
Apache system account authentication the_gorf *BSD 0 06-30-2004 08:46 PM
Squid proxy with user authentication and user rights duvanhorn Linux - Networking 0 08-07-2003 04:40 AM


All times are GMT -5. The time now is 03:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration