Re: Ldap authentication using django_auth_ldap

2014-09-25 Thread Mario Gudelj
I've sent the last email prematurely. I'm sorry about that. The way I normally set this up is I'll use 2 backends: AUTHENTICATION_BACKENDS = ( 'django_auth_ldap.backend.LDAPBackend', 'django.contrib.auth.backends.ModelBackend', ) If the LDAP backend fails the Django will try

Re: Ldap authentication using django_auth_ldap

2014-09-25 Thread Mario Gudelj
If that's the actual file it certainly won't work. You don't even have ldap server address setup. And those dots in dn, what is that? On 25/09/2014 9:09 pm, "RDN" wrote: > This is my settings.py file. I am trying to create an application where > the user will be able to login using their windows

Re: Ldap authentication using django_auth_ldap

2014-09-25 Thread Lachlan Musicman
When you say "running properly" do you mean "we can log in to the regular site, but not the admin site"? Or do you mean "runserver starts without error"? Cheers L. On 25 September 2014 17:03, RDN wrote: > This is my settings.py file. I am trying to create an application where the > user will be

Ldap authentication using django_auth_ldap

2014-09-25 Thread RDN
This is my settings.py file. I am trying to create an application where the user will be able to login using their windows credentials. import os import ldap from django_auth_ldap.config import LDAPSearch, GroupOfNamesType BASE_DIR = os.path.dirname(os.path.dirname(__file__)) SECRET_KEY = '_