Search code examples
djangoldapldap-query

Django LDAP: How to map extra fields in Active Directory to Django User Database


I would like to map some of the field available in my companies Active Directory to my Django Application like department, Job Title so on. I am using the Django_auth_ldap for backend authentication and it copies the data and updates the record in the Django application Database. Since, Django Auth User table does not support these attributes what will be your suggestions of doing it? Please let me know if you need any more information.


Solution

  • Read here, map AD profile attributes to the django profile. http://packages.python.org/django-auth-ldap/#user-objects