LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-25-2009, 02:16 PM   #1
newmanium2001
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Rep: Reputation: 0
Apache Auth: Using Require User and Require Group


Hi

I've been all over the apache documentation and Google and I keep ending up at the same pages. I'm wondering if anyone here would have some insight into this pesky little problem.

I have Apache plugged into Winbind with mod_auth_pam. It works great if I use either the "Require user <some guy>" or "require group <group of guys>".

However, it would be ideal if I could use both of these options at once ... allow a few specific users, plus this huge group as well. This isn't working though. It's saying "access to /test1 failed, reason: user 'someguy' does not meet 'require'ments for user/valid-user to be allowed access"

Obviously it's saying this because while "someguy" is in the allowed group, he's not in the allowed user list. Is there some way to incorporate a SatisfyAny into this? Any way at all to use both of these options at once? I need some sort of logical OR here ... doesn't seem like it would be this hard.
 
Old 08-25-2009, 02:39 PM   #2
newmanium2001
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Original Poster
Rep: Reputation: 0
Ah! Answered my own question, though it wasn't easy. I pretty much just guessed right. Added the line AuthzUserAuthoritative off to my config. This then says that any users listed in "Require user someguy anotherguy" are allowed, but are not required to be members of the "Require group groupofguys"

Here's my Directory directive (what?!) for example:

<Directory "/var/www/html/test1">
AuthPAM_Enabled on
AuthType Basic
AuthzUserAuthoritative off
AuthName "Login"
Require group agroupofguys
Require user someguy
Options Indexes FollowSymLinks
AllowOverride None

Order allow,deny
Allow from all

</Directory>
 
  


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
FTP wont let me in if I require password from user... Summersex Linux - Newbie 1 04-30-2009 04:39 PM
apache active directory require group.. zerocool22 Linux - Server 0 05-06-2008 03:38 AM
Apache2 Require user with Require group Russianspi Linux - Server 2 01-30-2008 11:21 AM
Apache require authentication according to client's ip Radicalm16 Linux - Server 2 01-19-2007 08:55 AM
Why does kppp.desktop require root userid for non-root user? rdaves@earthlink.net Linux - Networking 4 08-27-2001 09:18 AM


All times are GMT -5. The time now is 04:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration