3003. [experimental] Added update-policy match type "external",

enabliing named to defer the decision of whether to
			allow a dynamic update to an external daemon.
			(Contributed by Andrew Tridgell.) [RT #22758]
This commit is contained in:
Evan Hunt
2011-01-06 23:24:39 +00:00
parent 419a6c5ae4
commit 3916872f37
12 changed files with 107 additions and 23 deletions

View File

@@ -52,6 +52,15 @@ export KRB5CCNAME
test_update testdenied.example.nil. A "86400 A 10.53.0.12" "10.53.0.12" && status=1
test_update testdenied.example.nil. TXT "86400 TXT helloworld" "helloworld" || status=1
echo "I:testing external update policy"
test_update testcname.example.nil. TXT "86400 CNAME testdenied.example.nil" "testdenied" && status=1
perl ./authsock.pl --type=CNAME --path=ns1/auth.sock --pidfile=authsock.pid --timeout=120 &
sleep 1
test_update testcname.example.nil. TXT "86400 CNAME testdenied.example.nil" "testdenied" || status=1
test_update testcname.example.nil. TXT "86400 A 10.53.0.13" "10.53.0.13" && status=1
[ $status -eq 0 ] && echo "I:tsiggss tests all OK"
kill $(cat authsock.pid)
exit $status