Merge "More fine-grained AD domain name validation checks."

This commit is contained in:
Jenkins 2013-11-26 10:10:45 +00:00 committed by Gerrit Code Review
commit 872bdc5def

View File

@ -42,12 +42,12 @@ forms:
names. Single-level domain is not names. Single-level domain is not
appropriate. Subdomains are not allowed. appropriate. Subdomains are not allowed.
- expr: - expr:
regexpValidator: '^[^.]{1,15}\..*$' regexpValidator: '(^[^.]+$|^[^.]{1,15}\..*$)'
message: >- message: >-
NetBIOS name cannot be shorter than 1 symbol and NetBIOS name cannot be shorter than 1 symbol and
longer than 15 symbols. longer than 15 symbols.
- expr: - expr:
regexpValidator: '^[^.]*\.[^.]{2,63}.*$' regexpValidator: '(^[^.]+$|^[^.]*\.[^.]{2,63}.*$)'
message: >- message: >-
DNS host name cannot be shorter than 2 symbols and DNS host name cannot be shorter than 2 symbols and
longer than 63 symbols. longer than 63 symbols.