mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
908 B
21 lines
908 B
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) |
|
EMAIL_HOST_PASSWORD = serializers.CharField() |
|
EMAIL_USE_SSL = serializers.BooleanField(default=False) |
|
EMAIL_USE_TLS = serializers.BooleanField(default=False) |
|
|
|
|
|
class LDAPTestSerializer(serializers.Serializer): |
|
AUTH_LDAP_SERVER_URI = serializers.CharField(max_length=1024) |
|
AUTH_LDAP_BIND_DN = serializers.CharField(max_length=1024) |
|
AUTH_LDAP_BIND_PASSWORD = serializers.CharField() |
|
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) |
|
|
|
|