mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-24 08:25:17 -06:00
13256 ignore REMOTE_AUTH_BACKEND if REMOTE_AUTH_ENABLED is not set
This commit is contained in:
parent
f5a1f83f9f
commit
e8da97e4df
@ -418,6 +418,9 @@ TEMPLATES = [
|
||||
]
|
||||
|
||||
# Set up authentication backends
|
||||
if not REMOTE_AUTH_ENABLED:
|
||||
# ignore setting if REMOTE_AUTH_ENABLED not set
|
||||
REMOTE_AUTH_BACKEND = 'netbox.authentication.RemoteUserBackend'
|
||||
if type(REMOTE_AUTH_BACKEND) not in (list, tuple):
|
||||
REMOTE_AUTH_BACKEND = [REMOTE_AUTH_BACKEND]
|
||||
AUTHENTICATION_BACKENDS = [
|
||||
|
Loading…
Reference in New Issue
Block a user