mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-15 14:47:24 +00:00
fix: set default ldap user dn cache time (0)
This commit is contained in:
@@ -85,7 +85,7 @@ class LDAPSettingSerializer(serializers.Serializer):
|
||||
)
|
||||
AUTH_LDAP_CACHE_TIMEOUT = serializers.IntegerField(
|
||||
min_value=0, max_value=3600 * 24 * 30 * 12,
|
||||
default=3600 * 24 * 30,
|
||||
default=0,
|
||||
required=False, label=_('User DN cache timeout (s)'),
|
||||
help_text=_(
|
||||
'Caching the User DN obtained during user login authentication can effectively '
|
||||
|
||||
@@ -67,7 +67,7 @@ class LDAPHASettingSerializer(serializers.Serializer):
|
||||
)
|
||||
AUTH_LDAP_HA_CACHE_TIMEOUT = serializers.IntegerField(
|
||||
min_value=0, max_value=3600 * 24 * 30 * 12,
|
||||
default=3600 * 24 * 30,
|
||||
default=0,
|
||||
required=False, label=_('User DN cache timeout (s)'),
|
||||
help_text=_(
|
||||
'Caching the User DN obtained during user login authentication can effectively'
|
||||
|
||||
Reference in New Issue
Block a user