2989. [func] Added support for writable DLZ zones. (Contributed

by Andrew Tridgell of the Samba project.) [RT #22629]

2988.	[experimental]	Added a "dlopen" DLZ driver, allowing the creation
			of external DLZ drivers that can be loaded as
			shared objects at runtime rather than linked with
			named.  Currently this is switched on via a
			compile-time option, "configure --with-dlz-dlopen".
			Note: the syntax for configuring DLZ zones
			is likely to be refined in future releases.
			(Contributed by Andrew Tridgell of the Samba
			project.) [RT #22629]

2987.	[func]		Improve ease of configuring TKEY/GSS updates by
			adding a "tkey-gssapi-keytab" option.  If set,
			updates will be allowed with any key matching
			a principal in the specified keytab file.
			"tkey-gssapi-credential" is no longer required
			and is expected to be deprecated.  (Contributed
			by Andrew Tridgell of the Samba project.)
			[RT #22629]
This commit is contained in:
Evan Hunt
2010-12-18 01:56:23 +00:00
parent 21b13993dc
commit 71bd858d8e
64 changed files with 3272 additions and 470 deletions

View File

@@ -0,0 +1,43 @@
#!/bin/sh
# tests for TSIG-GSS updates
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
status=0
DIGOPTS="@10.53.0.1 -p 5300"
test_update() {
host="$1"
type="$2"
cmd="$3"
digout="$4"
cat <<EOF > ns1/update.txt
server 10.53.0.1 5300
update add $host $cmd
send
EOF
echo "I:testing update for $host $type $cmd"
$NSUPDATE -k ns1/ddns.key ns1/update.txt || {
echo "I:update failed for $host $type $cmd"
return 1
}
out="$($DIG $DIGOPTS -t $type -q $host | egrep ^$host)"
[ $(echo "$out" | grep "$digout" | wc -l) -eq 1 ] || {
echo "I:dig output incorrect for $host $type $cmd: $out"
return 1
}
return 0
}
test_update testdc1.example.nil. A "86400 A 10.53.0.10" "10.53.0.10" || status=1
test_update testdc2.example.nil. A "86400 A 10.53.0.11" "10.53.0.11" || status=1
test_update testdc3.example.nil. A "86400 A 10.53.0.10" "10.53.0.10" || status=1
test_update deny.example.nil. TXT "86400 TXT helloworld" "helloworld" && status=1
[ $status -eq 0 ] && echo "I:dlzexternal tests all OK"
exit $status