View | Details | Raw Unified | Return to bug 37816
Collapse All | Expand All

(-)a/ucs-4.0-1/base/univention-system-setup/umc/python/setup/__init__.py (-1 / +1 lines)
 Lines 386-392   def _append(key, message): Link Here 
386
386
387
		# host and domain name
387
		# host and domain name
388
		packages = set(values.get('components', []))
388
		packages = set(values.get('components', []))
389
		_check('hostname', util.is_hostname, _('The hostname is not a valid fully qualified domain name in lowercase (e.g. host.example.com).'))
389
		_check('hostname', util.is_hostname, _('The hostname is not a valid fully qualified domain name (e.g. host.example.com).'))
390
		_check('hostname', lambda x: len(x) <= 13, _('A valid NetBIOS name can not be longer than 13 characters. If Samba is installed, the hostname should be shortened.'), critical=('univention-samba' in packages or 'univention-samba4' in packages))
390
		_check('hostname', lambda x: len(x) <= 13, _('A valid NetBIOS name can not be longer than 13 characters. If Samba is installed, the hostname should be shortened.'), critical=('univention-samba' in packages or 'univention-samba4' in packages))
391
		_check('domainname', util.is_domainname, _("Please enter a valid fully qualified domain name in lowercase (e.g. host.example.com)."))
391
		_check('domainname', util.is_domainname, _("Please enter a valid fully qualified domain name in lowercase (e.g. host.example.com)."))
392
		hostname = allValues.get('hostname', '')
392
		hostname = allValues.get('hostname', '')
(-)a/ucs-4.0-1/base/univention-system-setup/umc/python/setup/de.po (-2 / +2 lines)
 Lines 159-166   msgstr "Der folgende Wert ist zu lang, es sind nur 64 Zeichen erlaubt: %s" Link Here 
159
msgid "The given user is not member of the Domain Admins group in Active Directory. This is a requirement for the Active Directory domain join."
159
msgid "The given user is not member of the Domain Admins group in Active Directory. This is a requirement for the Active Directory domain join."
160
msgstr "Der angegebene Benutzer ist kein Mitglied der Gruppe Domain Admins im Active Directory. Dies ist eine Voraussetzung für den Active Directory Domänenbeitritt."
160
msgstr "Der angegebene Benutzer ist kein Mitglied der Gruppe Domain Admins im Active Directory. Dies ist eine Voraussetzung für den Active Directory Domänenbeitritt."
161
161
162
msgid "The hostname is not a valid fully qualified domain name in lowercase (e.g. host.example.com)."
162
msgid "The hostname is not a valid fully qualified domain name (e.g. host.example.com)."
163
msgstr "Der Rechnernamen muss vollständig und klein geschrieben sein (z.B. host.example.com)."
163
msgstr "Der Rechnername ist kein gültiger FQDN (z.B. host.example.com)."
164
164
165
msgid "The length of fully qualified domain name is greater than 63 characters."
165
msgid "The length of fully qualified domain name is greater than 63 characters."
166
msgstr "Die Länge von System- und Domänennamen ist größer als 63 Zeichen."
166
msgstr "Die Länge von System- und Domänennamen ist größer als 63 Zeichen."
(-)a/ucs-4.0-1/base/univention-system-setup/umc/python/setup/util.py (-1 / +1 lines)
 Lines 710-716   def is_ipv6netmask(addr_netmask): Link Here 
710
710
711
def is_hostname(hostname):
711
def is_hostname(hostname):
712
	return is_hostname.RE.match(hostname) is not None
712
	return is_hostname.RE.match(hostname) is not None
713
is_hostname.RE = re.compile("^[a-z]([a-z0-9-]*[a-z0-9])*$")
713
is_hostname.RE = re.compile("^[a-z]([a-z0-9-]*[a-z0-9])*$", re.IGNORECASE)
714
714
715
def is_domainname(domainname):
715
def is_domainname(domainname):
716
	"""
716
	"""

Return to bug 37816