# Django Authentication Using LDAP

This is a Django authentication backend that authenticates against an LDAP service. Configuration can be as simple as a single distinguished name template, but there are many rich configuration options for working with users, groups, and permissions.

- Documentation: https://django-auth-ldap.readthedocs.io/

- PyPI: https://pypi.org/project/django-auth-ldap/

- Repository: https://github.com/django-auth-ldap/django-auth-ldap

- License: BSD 2-Clause

This version is supported all supported version of Python and Django. It requires python-ldap >= 3.1.

- Installation
- Authentication
  - Server Config
  - Search/Bind
  - Direct Bind
  - Customizing Authentication
  - Notes
- Working With Groups
  - Types of Groups
  - Finding Groups
  - Limiting Access
- User objects
  - Populating Users
  - Easy Attributes
  - Updating Users
  - Direct Attribute Access
- Permissions
  - Using Groups Directly
  - Group Mirroring
  - Non-LDAP Users
- Multiple LDAP Configs
- Custom Behavior
  - Subclassing LDAPBackend
  - Using default_settings
  - Overriding default_settings
- Logging
- Performance
- Example Configuration
- Reference
  - Settings
  - Module Properties
  - Configuration
  - Backend
- Change Log
  - Old changes
  - 3.0.0 — 2021-07-19
  - 2.4.0 - 2021-04-06
  - 2.3.0 - 2021-02-15
  - 2.2.0 - 2020-06-02
  - 2.1.0 - 2019-12-03
  - 2.0.0 - 2019-06-05
  - 1.6.1 - 2018-06-02
  - 1.6.0 - 2018-06-02
  - 1.5.0 - 2018-04-18
  - 1.4.0 - 2018-03-22
  - 1.3.0 - 2017-11-20
  - 1.2.16 - 2017-09-30
  - 1.2.15 - 2017-08-17
  - 1.2.14 - 2017-07-24
  - 1.2.13 - 2017-06-19
  - 1.2.12 - 2017-05-20
  - 1.2.11 - 2017-04-22
  - 1.2.9 - 2017-02-14
  - 1.2.8 - 2016-04-18
  - 1.2.7 - 2015-09-29
  - 1.2.6 - 2015-03-29
  - 1.2.5 - 2015-01-30
  - 1.2.4 - 2014-12-28
  - 1.2.3 - 2014-11-18
  - 1.2.2 - 2014-09-22
  - 1.2.1 - 2014-08-24
  - 1.2.0 - 2014-04-10
  - 1.1.8 - 2014-02-01
  - 1.1.7 - 2013-11-19
  - 1.1.5 - 2013-10-25
  - 1.1.4 - 2013-03-09
  - 1.1.3 - 2013-01-05
- Contributing
  - Development

## License

Copyright (c) 2009, Peter Sagerson All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.