2018-01-11 12:10:27 +00:00
|
|
|
from rest_framework import serializers
|
|
|
|
|
|
|
|
|
|
|
|
class MailTestSerializer(serializers.Serializer):
|
|
|
|
EMAIL_HOST = serializers.CharField(max_length=1024, required=True)
|
|
|
|
EMAIL_PORT = serializers.IntegerField(default=25)
|
|
|
|
EMAIL_HOST_USER = serializers.CharField(max_length=1024)
|
2019-07-01 03:31:16 +00:00
|
|
|
EMAIL_HOST_PASSWORD = serializers.CharField(required=False, allow_blank=True)
|
2019-06-14 02:51:18 +00:00
|
|
|
EMAIL_FROM = serializers.CharField(required=False, allow_blank=True)
|
2018-01-11 12:10:27 +00:00
|
|
|
EMAIL_USE_SSL = serializers.BooleanField(default=False)
|
|
|
|
EMAIL_USE_TLS = serializers.BooleanField(default=False)
|
2018-01-12 07:43:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
class LDAPTestSerializer(serializers.Serializer):
|
|
|
|
AUTH_LDAP_SERVER_URI = serializers.CharField(max_length=1024)
|
2019-02-22 11:14:07 +00:00
|
|
|
AUTH_LDAP_BIND_DN = serializers.CharField(max_length=1024, required=False, allow_blank=True)
|
|
|
|
AUTH_LDAP_BIND_PASSWORD = serializers.CharField(required=False, allow_blank=True)
|
2018-01-12 07:43:26 +00:00
|
|
|
AUTH_LDAP_SEARCH_OU = serializers.CharField()
|
|
|
|
AUTH_LDAP_SEARCH_FILTER = serializers.CharField()
|
|
|
|
AUTH_LDAP_USER_ATTR_MAP = serializers.CharField()
|
|
|
|
AUTH_LDAP_START_TLS = serializers.BooleanField(required=False)
|
|
|
|
|
2019-01-15 02:23:30 +00:00
|
|
|
|
2019-02-26 04:38:20 +00:00
|
|
|
|