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', '') |