django-auth-ldap

Importing LDAP users into django database

不打扰是莪最后的温柔 提交于 2019-12-03 12:34:49
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

Understanding Django-LDAP authentication

半世苍凉 提交于 2019-11-29 20:18:55
I am new to Django and have been assigned the task of implementing a user authentication system with LDAP as the backend. I guess the documentation assumes that the end developer has enough experience in Django to be able to understand and implement such a system. This is where I fail to understand how to implement a simple django application with LDAP based authentication. Here is what I have understood so far: Only posting the changes to a file: settings.py .... import ldap from django_auth_ldap.config import LDAPSearch AUTH_LDAP_SERVER_URI = "ldap://<my url>" AUTHENTICATION_BACKENDS = (

Understanding Django-LDAP authentication

♀尐吖头ヾ 提交于 2019-11-28 16:17:39
问题 I am new to Django and have been assigned the task of implementing a user authentication system with LDAP as the backend. I guess the documentation assumes that the end developer has enough experience in Django to be able to understand and implement such a system. This is where I fail to understand how to implement a simple django application with LDAP based authentication. Here is what I have understood so far: Only posting the changes to a file: settings.py .... import ldap from django_auth