niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Apache
2.2.4 mod_authz_owner "forgets" user's auth
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
TJB
*nix forums beginner


Joined: 02 Mar 2006
Posts: 4

PostPosted: Fri May 04, 2007 6:44 pm    Post subject: 2.2.4 mod_authz_owner "forgets" user's auth Reply with quote

Good Morning:

I'd appreciate suggestions on the following.

The goal is to base web access control on the underlying Unix file system
group access control. I'm using:
- AuthzUnixgroup (Third-party module which effectively replaces AuthGroupFile
with /etc/group. See: http://www.unixpapa.com/mod_authz_unixgroup/)
- Apache's "Require file-group" mechanism (mod_authz_owner)

We experience two prohibitively annoying side-effects of this, and I need
help with #2:

1) Every request for a missing file (including non-existent index.html)
results in a request for reauthentication. To solve this, I've added
rewrite rules which intercept requests for missing files and send these
requests to local php scripts. This works well.

2) A request on a file to which the authenticated user is not authorized
results in the desired request for reauthentication and access denial.
However, when the user then returns to a file to which s/he is
authorized, s/he is again forced to reauth.

It's as if the browser forgets to resend the login/password, or the
server can't use it.

Has anyone else used "Require file-group" and experienced this?

--

We're at: Solaris8, apache-2.2.4, SSL is enabled.

Here are the successful rewrite rules for the VirtualHost:

# Replicate the function of DirectoryIndex.
RewriteCond %{REQUEST_URI} ^/TJB_TEST
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI}index.html -f
RewriteRule ^ %{REQUEST_URI}index.html [PT,L]

RewriteCond %{REQUEST_URI} ^/TJB_TEST
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI}index.php -f
RewriteRule ^ %{REQUEST_URI}index.php [PT,L]

RewriteCond %{REQUEST_URI} ^/TJB_TEST
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [PT,L]

# When a file doesn't exist, give a helpful error doc.
RewriteCond %{REQUEST_URI} ^/TJB_TEST
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteRule ^ /FileNotFound.php?req_uri=%{REQUEST_URI}&referer=%{HTTP_REFERER} [PT,L]


Here's the directory section:

#############################################################################
<Directory /web/[hide]/TJB_TEST >
AllowOverride None
order deny,allow
deny from all
allow from .example.com
Options SymLinksIfOwnerMatch IncludesNOEXEC Indexes

DirectoryIndex /DirectoryIndexer.php

AuthName "TJB_TEST Access Controls Test"
AuthType Basic
AuthBasicProvider file
AuthUserFile /web/[hide]/Password.cfg

AuthzOwnerAuthoritative on
AuthzUnixgroup on

Require file-group
Satisfy all
</directory>
#############################################################################


Thanks for any suggestions!
--Tom
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Sat Nov 22, 2008 8:04 pm | All times are GMT
navigation Forum index » Apps » Apache
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Trouble enabling auth on postfix and sasl dklugmann Postfix 0 Fri Feb 29, 2008 11:02 pm
No new posts SQL*Loader - OPTIONALLY ENCLOSED BY '"' CatInTheHat Oracle 0 Tue Feb 06, 2007 3:08 pm
No new posts SMTP AUTH & TLS question Tony Stocker Postfix 5 Wed Jul 19, 2006 4:12 pm
No new posts getting user's home directory on windows Sreeram Kandallu python 0 Tue Jul 18, 2006 3:33 pm
No new posts ACL User's Group mad__max Squid 0 Mon Jul 17, 2006 1:57 pm

Mobile Phone | Blog5 Game Cheats | Houses for Sale | Loans | Myspace Codes
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1265s ][ Queries: 16 (0.0520s) ][ GZIP on - Debug on ]