Re: htaccess using AuthCookieDBI not protecting the directory index

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: André Warnier <aw@xxxxxxxxxx>
Date: Tue, 15 Sep 2009 01:50:05 +0200
To: users@xxxxxxxxxxxxxxxx


Tosh Cooey wrote:
...
Maybe I'll bug the author of the module now.

I just had a quick look at AuthCookieDBI, which subclasses AuthCookie.
In AuthCookie->authenticate(), there is indeed a check for sub-requests, returning always OK in that case. In other words, I don't think that Apache subrequests, per se, are the cause of the problem.
But maybe it is the fact that you are using this in a .htaccess file.
Try setting
PerlSetVar AuthCookieDebug 3
in your .htaccess file.
Then try again, and look at the server error log.


Hi André, thanks for your help! I set the debugging flag and here's what came out:

[Mon Sep 21 13:45:22 2009] [error] auth_type Apache2::AuthCookieDBI
[Mon Sep 21 13:45:22 2009] [error] r=Apache2::RequestRec=SCALAR(0x80212ed0) authtype=Apache2::AuthCookieDBI
[Mon Sep 21 13:45:22 2009] [error] auth_name berlin
[Mon Sep 21 13:45:22 2009] [error] ses_key_cookie
[Mon Sep 21 13:45:22 2009] [error] uri /berlin/


[Mon Sep 21 13:46:05 2009] [error] auth_type Apache2::AuthCookieDBI
[Mon Sep 21 13:46:05 2009] [error] r=Apache2::RequestRec=SCALAR(0x805eead8) authtype=Apache2::AuthCookieDBI
[Mon Sep 21 13:46:05 2009] [error] auth_name berlin
[Mon Sep 21 13:46:05 2009] [error] ses_key_cookie
[Mon Sep 21 13:46:05 2009] [error] uri /berlin/LOGIN
[Mon Sep 21 13:46:05 2009] [error] Converting POST -> GET


Everything looks fine, except this "Converting POST -> GET" part. I don't know if it is, but I know that when the AUTH is working properly that doesn't occur.

Anyway, I just wanted to follow up with you and to let you know that you don't need to bang your head trying to solve this as I have solved it with a redirect of / to /index.pl and then protecting all .pl files within a <Files ~ "\.(pl)$"> enclosure.

Thanks for your help again...!

Tosh

--
McIntosh Cooey - Twelve Hundred Group LLC - http://www.1200group.com/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux