#remotebackend-pipe-nsec3 remotebackend-unix-nsec3 remotebackend-http-nsec3
#remotebackend-pipe-nsec3-narrow remotebackend-unix-nsec3-narrow remotebackend-http-nsec3-narrow
goracle-nodnssec goracle goracle-nsec3 goracle-nsec3-optout
+oracle-nodnssec oracle oracle-nsec3
* Add -presigned to any ext-nsd, ext-bind, bind, gmysql or gsqlite3 test (except narrow)
to test presigned operation.
;;
- oracle-nodnssec | oracle | oracle-nsec3 | oracle-nsec3-optout)
+ oracle-nodnssec | oracle | oracle-nsec3)
[ -z "$ORACLEUSER" ] && ORACLEUSER=pdns
[ -z "$ORACLEPASSWD" ] && ORACLEPASSWD=pdns
echo "START ../modules/oraclebackend/dropschema;" | sqlplus -S $ORACLEUSER/$ORACLEPASSWD@xe > oracle.log
echo "START ../modules/oraclebackend/schema;" | sqlplus -S $ORACLEUSER/$ORACLEPASSWD@xe >> oracle.log
- tosql oracle | sqlplus -S $ORACLEUSER/$ORACLEPASSWD@xe >> oracle.log
+ ../pdns/zone2sql --oracle | grep -v 'INSERT INTO Records' | sqlplus -S $ORACLEUSER/$ORACLEPASSWD@xe >> oracle.log
+ ../pdns/zone2sql --oracle | grep " 'SOA', " | sqlplus -S $ORACLEUSER/$ORACLEPASSWD@xe >> oracle.log
cat > pdns-oracle.conf << __EOF__
launch=oracle
../pdns/pdnssec --config-dir=. --config-name=oracle activate-tsig-key tsig.com test master
fi
- for zone in $(grep zone named.conf | cut -f2 -d\")
- do
- if [ $context != goracle-nodnssec ]
- then
+ if [ $context != oracle-nodnssec ]
+ then
+ for zone in $(grep zone named.conf | cut -f2 -d\")
+ do
securezone $zone oracle
-# if [ $context = goracle-nsec3 ] || [ $context = goracle-nsec3-optout ]
-# then
-# ../pdns/pdnssec --config-dir=. --config-name=goracle set-nsec3 $zone "1 $optout 1 abcd" 2>&1
-# ../pdns/pdnssec --config-dir=. --config-name=goracle rectify-zone $zone 2>&1
-# fi
-# else
-# ../pdns/pdnssec --config-dir=. --config-name=goracle rectify-zone $zone 2>&1
- fi
- done
+ if [ $context = oracle-nsec3 ]
+ then
+ ../pdns/pdnssec --config-dir=. --config-name=oracle set-nsec3 $zone "1 0 1 abcd" 2>&1
+ fi
+ done
+ fi
+
+ echo "TRUNCATE TABLE records;" | sqlplus -S $ORACLEUSER/$ORACLEPASSWD@xe >> oracle.log
+ ../pdns/zone2sql --oracle | grep -v 'INSERT INTO Zones' | sqlplus -S $ORACLEUSER/$ORACLEPASSWD@xe >> oracle.log
$RUNWRAPPER $PDNS --daemon=no --local-port=$port --config-dir=. \
--config-name=oracle --socket-dir=./ --no-shuffle \
--send-root-referral --query-logging \
--cache-ttl=$cachettl $lua_prequery &
- skipreasons="nodyndns"
if [ $context = oracle-nsec3 ]
then
+ skipreasons="nodyndns oracle-nsec3"
extracontexts="dnssec nsec3"
- elif [ $context = oracle-nsec3-optout ]
- then
- extracontexts="dnssec nsec3 nsec3-optout"
elif [ $context = oracle-nodnssec ]
then
- skipreasons="nodnssec nodyndns"
+ skipreasons="nodyndns nodnssec"
else
+ skipreasons="nodyndns oracle-nsec"
extracontexts="dnssec"
fi
skipreasons="$skipreasons noent" # TODO add ent support to oracle backend