Django-auth-ldap

Latest version: v5.1.0

Safety actively analyzes 681881 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 6

2.0.0

------------------

- Removed support for Python 2 and 3.4.
- Removed support for end of life Django 2.0.
- Added support for Django 2.2.
- Add testing and support for Python 3.7 with Django 1.11 and 2.1.
- When :setting:`AUTH_LDAP_SERVER_URI` is set to a callable, it is now passed a
positional ``request`` argument. Support for no arguments will continue for
backwards compatibility but will be removed in a future version.
- Added new :setting:`AUTH_LDAP_NO_NEW_USERS` to prevent the creation of new
users during authentication. Any users not already in the Django user
database will not be able to login.

1.6.1

------------------

- Renamed ``requirements.txt`` to ``dev-requirements.txt`` to fix Read the Docs
build.

1.6.0

------------------

- Updated ``LDAPBackend.authenticate()`` signature to match Django's
documentation.
- Fixed group membership queries with DNs containing non-ascii characters on
Python 2.7.
- The setting :setting:`AUTH_LDAP_CACHE_TIMEOUT` now replaces deprecated
`AUTH_LDAP_CACHE_GROUPS` and `AUTH_LDAP_GROUP_CACHE_TIMEOUT`. In addition to
caching groups, it also controls caching of distinguished names (which were
previously cached by default). A compatibility shim is provided so the
deprecated settings will continue to work.

1.5.0

------------------

- django-auth-ldap is now hosted at
https://github.com/django-auth-ldap/django-auth-ldap.

- Removed NISGroupType class. It searched by attribute nisNetgroupTriple, which
has no defined EQAULITY rule.

- The python-ldap library is now initialized with ``bytes_mode=False``,
requiring all LDAP values to be handled as Unicode text (``str`` in Python 3
and ``unicode`` in Python 2), not bytes. For additional information, see the
python-ldap documentation on :ref:`bytes mode <text-bytes>`.

- Removed deprecated function ``LDAPBackend.get_or_create_user()``. Use
:meth:`~django_auth_ldap.backend.LDAPBackend.get_or_build_user` instead.

1.4.0

------------------

- Honor the attrlist argument to :setting:`AUTH_LDAP_GROUP_SEARCH`

- **Backwards incompatible**: Removed support for Django < 1.11.

- Support for Python 2.7 and 3.4+ now handled by the same dependency,
`python-ldap >= 3.0 <https://pypi.org/project/python-ldap/>`_.

1.3.0

------------------

- **Backwards incompatible**: Removed support for obsolete versions of
Django (<=1.7, plus 1.9).

- Delay saving new users as long as possible. This will allow
:setting:`AUTH_LDAP_USER_ATTR_MAP` to populate required fields before creating
a new Django user.

``LDAPBackend.get_or_create_user()`` is now
:meth:`~django_auth_ldap.backend.LDAPBackend.get_or_build_user` to avoid
confusion. The old name may still be overridden for now.

- Support querying by a field other than the username field with
:setting:`AUTH_LDAP_USER_QUERY_FIELD`.

- New method
:meth:`~django_auth_ldap.backend.LDAPBackend.authenticate_ldap_user` to
provide pre- and post-authentication hooks.

- Add support for Django 2.0.

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.