weird authentication thinger

3 views
Skip to first unread message

James Carroll

unread,
Feb 16, 2009, 1:27:17 PM2/16/09
to smug-...@googlegroups.com
when I set the contents of my .htaccess files as follows:

AuthType Basic
AuthName "jlcarroll.net"
Require valid-user
SetEnv DJANGO_SETTINGS_MODULE django_smug.settings
PythonAuthenHandler django.contrib.auth.handlers.modpython
pythonOption DJANGO_SETTINGS_MODULE django_smug.settings
Options +Indexes
SetHandler None

I can index the files, but the index doesn't show directories for some
strange reason....

When I change the .htaccess file to the following:

Options +Indexes
SetHandler None

It indexes files and directories. No idea why....

when I set it to:

AuthName "HohumRealm"
AuthType Basic
AuthUserFile /home/jlc/Family.passwd
require valid-user
Options +Indexes
SetHandler None

It also works. So, this seems to mean that I can't use django
authentication, but have to use old school .htaccess authentication to
protect directories IF I want directory indexing to function
correctly. This isn't a deal killer, but it does mean that I can't use
the same password list for both, which is a bother. Any ideas how to
fix this?

James

--
"And very early in the morning
the first day of the week,
they came unto the sepulchre
at the rising of the sun..." (Mark 16:2)

Web: http://james.jlcarroll.net

Andrew McNabb

unread,
Feb 16, 2009, 5:24:39 PM2/16/09
to smug-...@googlegroups.com
On Mon, Feb 16, 2009 at 11:27:17AM -0700, James Carroll wrote:
>
> It also works. So, this seems to mean that I can't use django
> authentication, but have to use old school .htaccess authentication to
> protect directories IF I want directory indexing to function
> correctly. This isn't a deal killer, but it does mean that I can't use
> the same password list for both, which is a bother. Any ideas how to
> fix this?

That's a strange problem, but I don't really have any insights because I
haven't used Django authentication for ordinary directories. I'd
recommend going to #django on IRC or to the django-users mailing list.

--
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55 8012 AB4D 6098 8826 6868

Reply all
Reply to author
Forward
0 new messages