django auth against local users

26 views
Skip to first unread message

Joris

unread,
Aug 13, 2012, 8:26:18 AM8/13/12
to django...@googlegroups.com
Dear list 
I've seen a number of differnent auth backends for django, but for some reason could not find a way to have Django auth against the local system users on the local machine (e.g. /etc/passwd). In my case Django is running on an intranet site (CentOS6) that is also connected to windows AD. My aim is to add users in the default Django model, but have django do password verification against the local system (I guess that means PAM). This way users only need to change their password once, and locked-out users from AD are auto-disabled from the django-site. Additional bonus would be if Django understands the AD groups.
I know there is an LDAP backend for django but I just cannot manage to get it to work against windows 2003 AD. Being able to auth against local user (and have the OS/samba deal with the AD integration) would be much easier. Does anyone have any pointers?

many thanks
joris

Daniel Roseman

unread,
Aug 13, 2012, 8:45:01 AM8/13/12
to django...@googlegroups.com
You keep saying "local machine". Do you mean the machine the user is browsing from? That's not possible, for what should be obvious security reasons. 
--
DR.

Joris

unread,
Aug 13, 2012, 9:18:53 AM8/13/12
to django...@googlegroups.com


You keep saying "local machine". Do you mean the machine the user is browsing from? That's not possible, for what should be obvious security reasons. 
--
DR.

No that would indeed be silly. By local machine I mean local to the django install: i.e. the server. I figured that was obvious, so apologies for the unclarity.

JB
Reply all
Reply to author
Forward
0 new messages