Merge pull request #549 from cchurch/allow-non-fqdn-for-ldap-server-uri

Allow non-FQDN for AUTH_LDAP_SERVER_URI.
This commit is contained in:
Matthew Jones 2017-11-02 08:57:04 -04:00 committed by GitHub
commit b70f7bd866
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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