Skip to content

Commit c99e565

Browse files
rmanyarijeremystretch
authored andcommitted
fix remote auth backend check
1 parent 16d5107 commit c99e565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/netbox/api/authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def authenticate_credentials(self, key):
6060

6161
user = token.user
6262
# When LDAP authentication is active try to load user data from LDAP directory
63-
if settings.REMOTE_AUTH_BACKEND == 'netbox.authentication.LDAPBackend':
63+
if 'netbox.authentication.LDAPBackend' in settings.REMOTE_AUTH_BACKEND:
6464
from netbox.authentication import LDAPBackend
6565
ldap_backend = LDAPBackend()
6666

0 commit comments

Comments
 (0)