]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
use a test key
authorMark Andrews <marka@isc.org>
Wed, 11 Nov 2015 23:54:59 +0000 (10:54 +1100)
committerMark Andrews <marka@isc.org>
Wed, 11 Nov 2015 23:54:59 +0000 (10:54 +1100)
bin/tests/system/rndc/ns5/named.conf
bin/tests/system/rndc/tests.sh

index 5a8a472acb789effa80b0c151fd24131f6025511..35ce5cbbc52dc39ce8144a0ae280e7b55044d9d1 100644 (file)
@@ -24,8 +24,13 @@ options {
        recursion no;
 };
 
+key rndc_key {
+        secret "1234abcd8765";
+        algorithm hmac-sha256;
+};
+
 controls {
-       inet 10.53.0.5 port 9953 allow { any; } read-only yes;
+       inet 10.53.0.5 port 9953 allow { any; } keys { rndc_key; } read-only yes;
 };
 
 zone "." {
index 8337cf64e1c569fc44f02d910864415b4a071339..c001ec4dd6836da6888e9f1894ae096383600ac0 100644 (file)
@@ -435,9 +435,9 @@ status=`expr $status + $ret`
 
 echo "I:test read-only control channel access"
 ret=0
-$RNDC -s 10.53.0.5 -p 9953 status > /dev/null 2>&1 || ret=1
-$RNDC -s 10.53.0.5 -p 9953 nta -dump > /dev/null 2>&1 || ret=1
-$RNDC -s 10.53.0.5 -p 9953 reconfig > /dev/null 2>&1 && ret=1
+$RNDC -s 10.53.0.5 -p 9953 -c ../common/rndc.conf status > /dev/null 2>&1 || ret=1
+$RNDC -s 10.53.0.5 -p 9953 -c ../common/rndc.conf nta -dump > /dev/null 2>&1 || ret=1
+$RNDC -s 10.53.0.5 -p 9953 -c ../common/rndc.conf reconfig > /dev/null 2>&1 && ret=1
 if [ $ret != 0 ]; then echo "I:failed"; fi
 status=`expr $status + $ret`