Add regular expression pattern to host names.

Limit hostnames to letters, digits and - with a maximum length of 255

https://fedorahosted.org/freeipa/ticket/1780
This commit is contained in:
Rob Crittenden
2011-09-12 13:51:31 -04:00
committed by Martin Kosek
parent 6aa5bfe5db
commit 8cf8870d3d
3 changed files with 13 additions and 10 deletions

View File

@@ -38,8 +38,8 @@ class test_sudorule(XMLRPC_test):
test_external_user = u'external_test_user'
test_group = u'sudorule_test_group'
test_external_group = u'external_test_group'
test_host = u'sudorule._test_host'
test_external_host = u'external._test_host'
test_host = u'sudorule.test-host'
test_external_host = u'external.test-host'
test_hostgroup = u'sudorule_test_hostgroup'
test_sudoallowcmdgroup = u'sudorule_test_allowcmdgroup'
test_sudodenycmdgroup = u'sudorule_test_denycmdgroup'