diff --git a/muranodashboard/panel/forms.py b/muranodashboard/panel/forms.py index d4bd37c56..6c28af215 100644 --- a/muranodashboard/panel/forms.py +++ b/muranodashboard/panel/forms.py @@ -76,7 +76,7 @@ class CommonPropertiesExtension(object): class WizardFormADConfiguration(forms.Form, CommonPropertiesExtension): domain_name_re = re.compile( - r'^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](\.[a-zA-Z]{2,})?$') + r'^[a-zA-Z0-9][a-zA-Z0-9.-]+[a-zA-Z0-9]$') validate_domain_name = RegexValidator(domain_name_re, _(u'Enter a valid domain name: \ just letters, numbers, dashes and \