mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 15:27:47 -02:30
Merge pull request #2739 from ryanpetrello/fix-2738
fix a bug in multi-LDAP authentication
This commit is contained in:
@@ -110,6 +110,7 @@ class LDAPBackend(BaseLDAPBackend):
|
|||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
user = super(LDAPBackend, self).authenticate(username, password)
|
user = super(LDAPBackend, self).authenticate(username, password)
|
||||||
|
if user and getattr(user, 'ldap_user', None):
|
||||||
try:
|
try:
|
||||||
user.ldap_user._get_groups().get_group_dns()
|
user.ldap_user._get_groups().get_group_dns()
|
||||||
except ImproperlyConfigured:
|
except ImproperlyConfigured:
|
||||||
|
|||||||
Reference in New Issue
Block a user