Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-27-2006, 04:07 PM   #1
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.

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

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


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 12:53 AM
user authentication triley Linux - Networking 3 06-06-2005 10: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 06:12 AM
Apache system account authentication the_gorf *BSD 0 06-30-2004 07:46 PM
Squid proxy with user authentication and user rights duvanhorn Linux - Networking 0 08-07-2003 03:40 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:33 PM.

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