Re: Custom authentication backend and User passwords

2009-01-29 Thread Delta20
Thanks Malcolm. For anyone interested in this topic, I have created a snippet with my solution: http://www.djangosnippets.org/snippets/1301/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: Custom authentication backend and User passwords

2009-01-28 Thread Malcolm Tredinnick
On Wed, 2009-01-28 at 11:34 -0800, Delta20 wrote: > Is there a way to make it so that when you create a User in admin, the > password is set such that the user cannot login using ModelBackend? Have a look at this: http://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.models.User.s

Custom authentication backend and User passwords

2009-01-28 Thread Delta20
Is there a way to make it so that when you create a User in admin, the password is set such that the user cannot login using ModelBackend? I'm using two authentication backends, a custom backend and Modelbackend: i.e.: AUTHENTICATION_BACKENDS = ('myapp.auth.ActiveDirectoryBackend', 'django.contr