Allow non-FQDN for AUTH_LDAP_SERVER_URI.

This commit is contained in:
Chris Church 2017-11-01 12:51:22 -04:00
parent 0579db1162
commit 0f8e073d10
No known key found for this signature in database
GPG Key ID: 0ABE17EA94D3285A

View File

@ -109,6 +109,7 @@ class LDAPServerURIField(fields.URLField):
def __init__(self, **kwargs):
kwargs.setdefault('schemes', ('ldap', 'ldaps'))
kwargs.setdefault('allow_plain_hostname', True)
super(LDAPServerURIField, self).__init__(**kwargs)
def run_validators(self, value):