From 48b71bb11be5c8d84e5b469f8550704348c02312 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 8 May 2020 16:48:36 +0800 Subject: [PATCH] AUTH_LDAP_USER_ATTR_MAP to Dict field --- apps/settings/serializers/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/settings/serializers/settings.py b/apps/settings/serializers/settings.py index 0f315801b..c5baa67da 100644 --- a/apps/settings/serializers/settings.py +++ b/apps/settings/serializers/settings.py @@ -42,7 +42,7 @@ class LdapSettingSerializer(serializers.Serializer): AUTH_LDAP_BIND_PASSWORD = serializers.CharField(max_length=1024, write_only=True, required=False) AUTH_LDAP_SEARCH_OU = serializers.CharField(max_length=1024, allow_blank=True, required=False) AUTH_LDAP_SEARCH_FILTER = serializers.CharField(max_length=1024, required=True) - AUTH_LDAP_USER_ATTR_MAP = serializers.CharField(max_length=1024, required=True) + AUTH_LDAP_USER_ATTR_MAP = serializers.DictField(required=True) AUTH_LDAP = serializers.BooleanField(required=False)