On Fri, Nov 16, 2012 at 4:23 AM, Anil Jangity wrote:
> I am trying to build a custom User model with a custom authentication backend
> (ldap).
> Here is what I've done so far:
>
> Custom LDAP authentication backend:
>
> class LDAPBackend:
> def get_user(self, user_id):
> try:
>
So, the bottom line is, what do I need to do after I do a authenticate() to
have the login persist in the session and in the other views?
Thanks
On Nov 15, 2012, at 8:23 PM, Anil Jangity wrote:
> I am trying to build a custom User model with a custom authentication backend
> (ldap).
> Here i
Actually I did, see my last comment ;)
On Nov 15, 2012, at 8:32 PM, Russell Keith-Magee
wrote:
> Hi Anil,
>
> Before you started developing your own, did you consider doing a quick google
> search to see if there were any existing solutions that implemented LDAP
> authentication for Django
Hi Anil,
Before you started developing your own, did you consider doing a quick
google search to see if there were any existing solutions that implemented
LDAP authentication for Django?
http://packages.python.org/django-auth-ldap/
Yours,
Russ Magee %-)
On Fri, Nov 16, 2012 at 12:23 PM, Anil Ja
I am trying to build a custom User model with a custom authentication backend
(ldap).
Here is what I've done so far:
Custom LDAP authentication backend:
class LDAPBackend:
def get_user(self, user_id):
try:
return LDAPUser.objects.get(pk=user_id)
except LDAPUser.Do
5 matches
Mail list logo