Re: too much customization - ldap user model

2012-11-19 Thread Tom Evans
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: >

Re: too much customization - ldap user model

2012-11-17 Thread Anil Jangity
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

Re: too much customization - ldap user model

2012-11-15 Thread Anil Jangity
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

Re: too much customization - ldap user model

2012-11-15 Thread Russell Keith-Magee
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

too much customization - ldap user model

2012-11-15 Thread Anil Jangity
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