Importing LDAP users into django database
I want to import the users of a ActiveDirectory database into Django. To this end I'm trying to use the django_auth_ldap module. Here is what I tried already : in my settings.py : AUTH_LDAP_SERVER_URI = "ldap://example.fr" AUTH_LDAP_BIND_DN = 'cn=a_user,dc=example,dc=fr' AUTH_LDAP_BIND_PASSWORD='' AUTH_LDAP_USER_SEARCH = LDAPSearch('ou=users,dc=example,dc=fr', ldap.SCOPE_SUBTREE, '(uid=%(user)s)') AUTH_LDAP_GROUP_SEARCH = LDAPSearch('ou=groups,dc=example,dc=fr', ldap.SCOPE_SUBTREE, '(objectClass=groupOfNames)') AUTH_LDAP_GROUP_TYPE = ActiveDirectoryGroupType() #Populate the Django user from