mirror of https://github.com/jumpserver/jumpserver
fix: 修复代码更改引起的bug
parent
a7ab7da61c
commit
bc3e50a529
|
@ -90,7 +90,7 @@ class Setting(models.Model):
|
|||
setting = cls.objects.filter(name='AUTH_LDAP').first()
|
||||
if not setting:
|
||||
return
|
||||
ldap_backend = settings.AUTH_BACKEND_LABEL_MAPPING['ldap']
|
||||
ldap_backend = settings.AUTH_BACKEND_LDAP
|
||||
backends = settings.AUTHENTICATION_BACKENDS
|
||||
has = ldap_backend in backends
|
||||
if setting.cleaned_value and not has:
|
||||
|
|
Loading…
Reference in New Issue