[Update] 修改ldap test密码为空

pull/2425/head
ibuler 2019-02-22 19:14:07 +08:00
parent ddf60d2512
commit 866e5d2011
2 changed files with 3 additions and 4 deletions

View File

@ -12,8 +12,8 @@ class MailTestSerializer(serializers.Serializer):
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_BIND_DN = serializers.CharField(max_length=1024, required=False, allow_blank=True)
AUTH_LDAP_BIND_PASSWORD = serializers.CharField(required=False, allow_blank=True)
AUTH_LDAP_SEARCH_OU = serializers.CharField()
AUTH_LDAP_SEARCH_FILTER = serializers.CharField()
AUTH_LDAP_USER_ATTR_MAP = serializers.CharField()

View File

@ -1,9 +1,8 @@
# -*- coding: utf-8 -*-
#
from django.views.generic import DetailView, TemplateView
from django.views.generic import TemplateView
from common.permissions import AdminUserRequiredMixin
from ..models import CeleryTask
__all__ = ['CeleryTaskLogView']