mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #5229: Fix AttributeError exception when LDAP authentication is enabled
This commit is contained in:
@ -1,5 +1,13 @@
|
|||||||
# NetBox v2.9
|
# NetBox v2.9
|
||||||
|
|
||||||
|
## v2.9.6 (FUTURE)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* [#5229](https://github.com/netbox-community/netbox/issues/5229) - Fix AttributeError exception when LDAP authentication is enabled
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## v2.9.5 (2020-10-09)
|
## v2.9.5 (2020-10-09)
|
||||||
|
|
||||||
### Enhancements
|
### Enhancements
|
||||||
|
@ -175,6 +175,6 @@ class LDAPBackend:
|
|||||||
# Enable logging for django_auth_ldap
|
# Enable logging for django_auth_ldap
|
||||||
ldap_logger = logging.getLogger('django_auth_ldap')
|
ldap_logger = logging.getLogger('django_auth_ldap')
|
||||||
ldap_logger.addHandler(logging.StreamHandler())
|
ldap_logger.addHandler(logging.StreamHandler())
|
||||||
ldap_logger.setLevel(logging.INFO if settings.DEBUG is False else logging.DEBUG)
|
ldap_logger.setLevel(logging.INFO)
|
||||||
|
|
||||||
return obj
|
return obj
|
||||||
|
Reference in New Issue
Block a user