allow certain LDAP settings fields to be nullable

necessary to completely resolve #4678
This commit is contained in:
Ryan Petrello
2017-01-24 08:17:06 -05:00
parent 7c8896a96e
commit 0bcbaa5c86
2 changed files with 8 additions and 0 deletions

View File

@@ -269,6 +269,7 @@ register(
'AUTH_LDAP_USER_DN_TEMPLATE',
field_class=fields.LDAPDNWithUserField,
allow_blank=True,
allow_null=True,
default='',
label=_('LDAP User DN Template'),
help_text=_('Alternative to user search, if user DNs are all of the same '
@@ -338,6 +339,7 @@ register(
'AUTH_LDAP_REQUIRE_GROUP',
field_class=fields.LDAPDNField,
allow_blank=True,
allow_null=True,
default='',
label=_('LDAP Require Group'),
help_text=_('Group DN required to login. If specified, user must be a member '
@@ -354,6 +356,7 @@ register(
'AUTH_LDAP_DENY_GROUP',
field_class=fields.LDAPDNField,
allow_blank=True,
allow_null=True,
default='',
label=_('LDAP Deny Group'),
help_text=_('Group DN denied from login. If specified, user will not be '