Try to show more different validation messages for AD domain name.
Closes-bug: #1250823 Change-Id: I89393c2041862acd9259e8d530bdf7f6cf49b9a9
This commit is contained in:
parent
7147ed083f
commit
5caeef21ae
@ -32,13 +32,25 @@ forms:
|
|||||||
attributeNames: [name, domain]
|
attributeNames: [name, domain]
|
||||||
minLength: 2
|
minLength: 2
|
||||||
maxLength: 255
|
maxLength: 255
|
||||||
regexpValidator: '^[0-9A-Za-z](?!--)[0-9A-Za-z\-]{0,13}[0-9A-Za-z]\.[0-9A-Za-z][0-9A-Za-z\-]{0,61}[0-9A-Za-z]$'
|
validators:
|
||||||
errorMessages:
|
- expr:
|
||||||
invalid: >-
|
regexpValidator: '^([0-9A-Za-z]|[0-9A-Za-z][0-9A-Za-z-]*[0-9A-Za-z])\.[0-9A-Za-z][0-9A-Za-z-]*[0-9A-Za-z]$'
|
||||||
Only letters, numbers and dashes in the middle are
|
message: >-
|
||||||
allowed. Period characters are allowed only when they are
|
Only letters, numbers and dashes in the middle are
|
||||||
used to delimit the components of domain style
|
allowed. Period characters are allowed only when they
|
||||||
names. Single-level domain is not appropriate.
|
are used to delimit the components of domain style
|
||||||
|
names. Single-level domain is not
|
||||||
|
appropriate. Subdomains are not allowed.
|
||||||
|
- expr:
|
||||||
|
regexpValidator: '^[^.]{1,15}\..*$'
|
||||||
|
message: >-
|
||||||
|
NetBIOS name cannot be shorter than 1 symbol and
|
||||||
|
longer than 15 symbols.
|
||||||
|
- expr:
|
||||||
|
regexpValidator: '^[^.]*\.[^.]{2,63}.*$'
|
||||||
|
message: >-
|
||||||
|
DNS host name cannot be shorter than 2 symbols and
|
||||||
|
longer than 63 symbols.
|
||||||
helpText: >-
|
helpText: >-
|
||||||
Just letters, numbers and dashes are allowed.
|
Just letters, numbers and dashes are allowed.
|
||||||
A dot can be used to create subdomains
|
A dot can be used to create subdomains
|
||||||
|
Loading…
x
Reference in New Issue
Block a user