Re: Problem with AD (LDAP) authentication

2009-07-09 Thread Karen Tracey
On Thu, Jul 9, 2009 at 4:44 PM, TechnicalBard wrote: > > Have discovered what works - but it goes against the docs... > > I needed to set User.is_active = True. The permissions for admin > (has_perm) appears to check this flag and returns False for inactive > users. > >

Re: Problem with AD (LDAP) authentication

2009-07-09 Thread TechnicalBard
Have discovered what works - but it goes against the docs... I needed to set User.is_active = True. The permissions for admin (has_perm) appears to check this flag and returns False for inactive users. Problem solved. On Jul 9, 10:15 am, TechnicalBard wrote: > Alas - that

Re: Problem with AD (LDAP) authentication

2009-07-09 Thread TechnicalBard
Alas - that doesn't make a difference... On Jul 8, 4:29 pm, Frédéric Hébert wrote: > Hi, > >  Maybe,  should you put is_staff=True : > > http://docs.djangoproject.com/en/dev/topics/auth/#users > > Regards, > > Frédéric > > 2009/7/8 Technicalbard : > > >

Re: Problem with AD (LDAP) authentication

2009-07-08 Thread Frédéric Hébert
Hi, Maybe, should you put is_staff=True : http://docs.djangoproject.com/en/dev/topics/auth/#users Regards, Frédéric 2009/7/8 Technicalbard : > > I'm trying to write an Active Directory / LDAP authenication, and I'm > having problems.  The code is at:

Problem with AD (LDAP) authentication

2009-07-08 Thread Technicalbard
I'm trying to write an Active Directory / LDAP authenication, and I'm having problems. The code is at: http://dpaste.com/hold/64752/ When I set this authentication and then try to go to http://localhost:8000/admin and login to the development server, it authenticates against the LDAP server