BIND 10 trac875, updated. d3da4f1f4f00d13962e6f23ff1272269569be5d4 [trac875] Comments & descriptions
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu May 12 16:53:48 UTC 2011
The branch, trac875 has been updated
via d3da4f1f4f00d13962e6f23ff1272269569be5d4 (commit)
from f6e9a1186d00e023021f5853e5a7a1d7c3f838cf (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit d3da4f1f4f00d13962e6f23ff1272269569be5d4
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Thu May 12 18:45:48 2011 +0200
[trac875] Comments & descriptions
-----------------------------------------------------------------------
Summary of changes:
src/bin/cfgmgr/plugins/tsig_keys.py | 9 ++++++++-
src/bin/cfgmgr/plugins/tsig_keys.spec | 1 +
2 files changed, 9 insertions(+), 1 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/cfgmgr/plugins/tsig_keys.py b/src/bin/cfgmgr/plugins/tsig_keys.py
index d29482b..d57e645 100644
--- a/src/bin/cfgmgr/plugins/tsig_keys.py
+++ b/src/bin/cfgmgr/plugins/tsig_keys.py
@@ -13,6 +13,12 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+# This is the plugin for tsig_keys configuration section. The TSIG keyring
+# lives there (eg. all the shared secrets, with some exceptions where there
+# are some TSIG keys elsewhere, but these should be removed soon). We do
+# sanity checking of user configuration here, simply by trying to construct
+# all the keys here.
+
from isc.config.module_spec import module_spec_from_file
from isc.util.file import path_search
from pydnspp import TSIGKey, InvalidParameter
@@ -26,7 +32,8 @@ def check(config):
return ' '.join(errors)
# Get the list of keys, if any
keys = config.get('keys', [])
- # Run trough them, check they can be constructed and there are no dupes
+ # Run through them, check they can be constructed and there are no
+ # duplicates
keyNames = set()
for key in keys:
try:
diff --git a/src/bin/cfgmgr/plugins/tsig_keys.spec b/src/bin/cfgmgr/plugins/tsig_keys.spec
index a955779..e558dd2 100644
--- a/src/bin/cfgmgr/plugins/tsig_keys.spec
+++ b/src/bin/cfgmgr/plugins/tsig_keys.spec
@@ -1,6 +1,7 @@
{
"module_spec": {
"module_name": "tsig_keys",
+ "module_description": "The TSIG keyring is stored here",
"config_data": [
{
"item_name": "keys",
More information about the bind10-changes
mailing list