View | Details | Raw Unified | Return to bug 40212 | Differences between
and this patch

Collapse All | Expand All

(-)a/base/univention-system-setup/umc/python/setup/__init__.py (-1 / +1 lines)
 Lines 391-397   def _append(key, message): Link Here 
391
		# host and domain name
391
		# host and domain name
392
		packages = set(values.get('components', []))
392
		packages = set(values.get('components', []))
393
		_check('hostname', util.is_hostname, _('The hostname or the hostname part of the fully qualified domain name is invalid. Please go back to the host setting and make sure, that the hostname only contains letter (a-zA-Z) and digits (0-9).'))
393
		_check('hostname', util.is_hostname, _('The hostname or the hostname part of the fully qualified domain name is invalid. Please go back to the host setting and make sure, that the hostname only contains letter (a-zA-Z) and digits (0-9).'))
394
		_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))
394
		_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=(admember or 'univention-samba' in packages or 'univention-samba4' in packages))
395
		_check('domainname', util.is_domainname, _("Please enter a valid fully qualified domain name (e.g. host.example.com)."))
395
		_check('domainname', util.is_domainname, _("Please enter a valid fully qualified domain name (e.g. host.example.com)."))
396
		hostname = allValues.get('hostname', '')
396
		hostname = allValues.get('hostname', '')
397
		domainname = allValues.get('domainname', '')
397
		domainname = allValues.get('domainname', '')

Return to bug 40212