AUTH_LDAP_USER_ATTR_MAP to Dict field

pull/3979/head
Eric 5 years ago
parent 4517a92b2b
commit 48b71bb11b

@ -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)

Loading…
Cancel
Save