dns/bind: ensure the ACL names are unique (#3254)

This commit is contained in:
Robbert Rijkse 2023-01-10 08:43:26 -05:00 committed by GitHub
parent 0b0c5b8dd4
commit 23aae2f87e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -11,6 +11,7 @@ Plugin Changelog
1.25
* Ensure you can only add one ACL with the same name (contributed by Robbert Rijkse)
* Cleanup/Fix the Master/Slave domain dialogs (contributed by Robbert Rijkse)
* Revamp the logging page with proper columns (contributed by Robbert Rijkse)
* Add UI for RNDC Key configuration (contributed by Robbert Rijkse)

View file

@ -14,6 +14,12 @@
<Required>Y</Required>
<mask>/^(?!any$|localhost$|localnets$|none$)[0-9a-zA-Z_\-]{1,32}$/u</mask>
<ValidationMessage>Should be a string between 1 and 32 characters. Allowed characters are 0-9, a-z, A-Z, _ and -. Built-in ACL names must not be used: any, localhost, localnets, none.</ValidationMessage>
<Constraints>
<check001>
<ValidationMessage>An ACL with this name already exists.</ValidationMessage>
<type>UniqueConstraint</type>
</check001>
</Constraints>
</name>
<networks type="NetworkField">
<default></default>