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
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
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
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 = '_
4 matches
Mail list logo