apache authentication with django+flip+fastcgi

2009-10-22 Thread Robin Becker
We currently have django(using flup) running as a fastcgi external server (via a socket) and would like to use django to control access to static apache files (to avoid duplicate logins etc etc); I see that fastcgi can do Authentication (in the http sense) and access checking. Is there a way t

Apache Authentication for Embedded devices

2009-06-30 Thread system_matrix
credentials in auth_user file ( Django default) just like normal users. Now, I have to split this login mechanism so that controllers can login with some Apache authentication mechanism and send data without Django coming into Picture. The sent data is ultimately stored into Django database. As I want

Re: django apache authentication strange behavior with apache indexing.

2009-02-24 Thread Karen Tracey
On Fri, Feb 20, 2009 at 12:59 PM, Jlcarroll wrote: > > I posted this a couple of days ago and didn't get a response. Thought > that I might try again. > > I am creating a private genealogy web page of pictures/obituaries/data > files/census records etc... all just a set of files within a director

Re: django apache authentication strange behavior with apache indexing.

2009-02-24 Thread Jlcarroll
bump? On Feb 20, 10:59 am, Jlcarroll wrote: > I posted this a couple of days ago and didn't get a response. Thought > that I might try again. > > I am creating a private genealogy web page of pictures/obituaries/data > files/census records etc... all just a set of files within a directory > stru

django apache authentication strange behavior with apache indexing.

2009-02-20 Thread Jlcarroll
I posted this a couple of days ago and didn't get a response. Thought that I might try again. I am creating a private genealogy web page of pictures/obituaries/data files/census records etc... all just a set of files within a directory structure. I just want Apache to index the directory's conten

apache authentication

2009-02-18 Thread Jlcarroll
I am creating a private genealogy web page of pictures/obituaries/data files/census records etc... all just a set of files within a directory structure. I just want Apache to index the directory's contents and the files within them and serve them over the web. That works fine. Then I wanted to res

Re: apache authentication using Django on windows

2008-11-05 Thread Steven Armstrong
Matt wrote on 11/05/08 16:26: > Hi, > > I have Django running on Apache 2.2 on windows. I am attempting to > use django authentification to secure an apache folder using this > configuration: > > > > AuthType Basic > AuthName "mysite.com" > AuthUserFile /dev/null > AuthBasicAu

Re: apache authentication using Django on windows

2008-11-05 Thread Matt
That worked. Thanks! On Nov 5, 3:41 pm, Thomas Guettler <[EMAIL PROTECTED]> wrote: > Hi, > > Have you tried to create an empty file and use the filename as AuthUserFile? > >   Thomas > > Matt schrieb: > > > > > Hi, > > > I have Django running on Apache 2.2 on windows.  I am attempting to > > use

Re: apache authentication using Django on windows

2008-11-05 Thread Thomas Guettler
Hi, Have you tried to create an empty file and use the filename as AuthUserFile? Thomas Matt schrieb: > Hi, > > I have Django running on Apache 2.2 on windows. I am attempting to > use django authentification to secure an apache folder using this > configuration: > > > > AuthType Basic

apache authentication using Django on windows

2008-11-05 Thread Matt
Hi, I have Django running on Apache 2.2 on windows. I am attempting to use django authentification to secure an apache folder using this configuration: AuthType Basic AuthName "mysite.com" AuthUserFile /dev/null AuthBasicAuthoritative Off Require valid-user PythonPath

Re: How to use PythonOption DjangoPermissionName in apache authentication?

2008-10-23 Thread Eric
I've got the answer the permission format used in DjangoPermissionName is in my example, it's 'main.printdriver_developer' On Oct 22, 11:56 pm, Eric <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I set apache authentication against django's user databas

How to use PythonOption DjangoPermissionName in apache authentication?

2008-10-22 Thread Eric
Hi everybody, I set apache authentication against django's user database. and I want to limit a location to a group of people of my django staff. I set this in apache's config file like this: SetHandler cgi-script # authenticat

django + apache authentication

2007-02-27 Thread sean
Hello, I'm struggling a little to get apache configured to only allow access to some static media (image files in different resolutions, according to the permissions). These are the directives i give for the location of the medium sized images: ... SetHandler python-program PythonHandler django.c

Re: Apache authentication: AttributeError: 'module' object has no attribute 'auth'

2006-10-06 Thread Graham Dumpleton
[EMAIL PROTECTED] wrote: > Hi.. thanks for your replies guys. > > You're probably right... I'm running mod_python from the Ubuntu dapper > repositories which currently has version 3.1.4. Unfortunately the Edgy > package (which is 3.2.8) depends on a newer version of libc6 which > means that I rea

Re: Apache authentication: AttributeError: 'module' object has no attribute 'auth'

2006-10-06 Thread [EMAIL PROTECTED]
Hi.. thanks for your replies guys. You're probably right... I'm running mod_python from the Ubuntu dapper repositories which currently has version 3.1.4. Unfortunately the Edgy package (which is 3.2.8) depends on a newer version of libc6 which means that I really don't want to upgrade the package

Re: Apache authentication: AttributeError: 'module' object has no attribute 'auth'

2006-10-05 Thread Graham Dumpleton
[EMAIL PROTECTED] wrote: > Hello. I'm trying to get Apache to authenticate users using Django's > user database but I'm getting the above error (the whole apache error > log is at the bottom of the message). > > I've set up my project and created users using the Django development > server so the

Re: Apache authentication: AttributeError: 'module' object has no attribute 'auth'

2006-10-05 Thread RajeshD
Hi Stefan, What version of Apache and mod_python are you using? -Raj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsu

Apache authentication: AttributeError: 'module' object has no attribute 'auth'

2006-10-05 Thread [EMAIL PROTECTED]
Hello. I'm trying to get Apache to authenticate users using Django's user database but I'm getting the above error (the whole apache error log is at the bottom of the message). I've set up my project and created users using the Django development server so the database connection is working from

Re: Apache Authentication

2006-01-07 Thread Adrian Holovaty
On 1/7/06, Brian Ray <[EMAIL PROTECTED]> wrote: > btw, I will fill out a Trac ticket for the modpython.py fix, just in > case this thread get's lost in cyberspace. Thanks for the ticket and patch! I've committed it. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: Apache Authentication

2006-01-07 Thread Brian Ray
This is in my view *after* the Authenticaion: def login(request): user = users.get_object(username__exact=request.META['REMOTE_USER'] request.session[users.SESSION_KEY] = user.id request.user = user # do something else ... Seems to make both Django and Apache happy. Regards, Brian

Re: Apache Authentication

2006-01-07 Thread Brian Ray
Thanks Ian. But, this is not really what I am doing here. I do not want to create users from Apache. Kind Regards, Brian

Re: Apache Authentication

2006-01-07 Thread Ian Holsman
: 'bray', > 'REQUEST_METHOD': 'GET', > 'SCRIPT_NAME': None, > 'SERVER_NAME': 'foo.com', > 'SERVER_PORT': 0, > 'SERVER_PROTOCOL': 'HTTP/1.1', > 'SERVER_SOFTWARE': 'mod_python&#x

Re: Apache Authentication

2006-01-07 Thread Brian Ray
EMOTE_USER': 'bray', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': None, 'SERVER_NAME': 'foo.com', 'SERVER_PORT': 0, 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'mod_python'}, user:Anonym

Re: Apache Authentication

2006-01-07 Thread Brian Ray
Adrian, I took a look at modpython.py. I changed line 16 to: _str_to_bool = lambda s: s.lower() in ('1', 'true', 'on', 'yes') Note the parethesis. Seems to work now. Cool, Thanks!

Re: Apache Authentication

2006-01-07 Thread Adrian Holovaty
On 1/7/06, Brian Ray <[EMAIL PROTECTED]> wrote: "/usr/local/lib/python2.4/site-packages/django/contrib/auth/handlers/modpython.py", > line 20, in authenhandler > staff_only = _str_to_bool(options.get('DjangoRequireStaffStatus', > "on")) > > TypeError: 'tuple' object is not callable Ooooh, tha

Re: Apache Authentication

2006-01-07 Thread Brian Ray
Hi Adrian: When placed together, I do get asked for Authentication from browser. When good credentials are provided, I do get through but then an error is displayed. I would like to determine wether or not I am doing something wrong. Otherwise, can log this intro Trac as a feature request? -- B

Re: Apache Authentication

2006-01-06 Thread Adrian Holovaty
On 1/6/06, Brian Ray <[EMAIL PROTECTED]> wrote: > I see it's possible to `Authenticate against Django database from > Apache <http://www.djangoproject.com/documentation/apache_auth/>`_. I > would like to experiment with using Apache Authentication for Django > instea

Apache Authentication

2006-01-06 Thread Brian Ray
I see it's possible to `Authenticate against Django database from Apache <http://www.djangoproject.com/documentation/apache_auth/>`_. I would like to experiment with using Apache Authentication for Django instead of a login webpage, as well. Likewise, I would like to use mod_python.