tests: default verify_pac to true in test_ap-req

This commit is contained in:
Isaac Boukris
2021-07-14 17:09:06 +03:00
committed by Luke Howard
parent f4fcf8767c
commit 544515931b
3 changed files with 8 additions and 2 deletions

View File

@@ -39,7 +39,7 @@
#include <getarg.h>
#include <roken.h>
static int verify_pac = 0;
static int verify_pac = 1;
static int server_any = 0;
static int version_flag = 0;
static int help_flag = 0;

View File

@@ -506,7 +506,7 @@ ${kinit} -n --password-file=${objdir}/foopassword foo@$R || \
for a in $enctypes; do
echo "Getting tickets ($a)"; > messages.log
${kgetcred} -e $a ${server}@${R} || { ec=1 ; eval "${testfailed}"; }
${test_ap_req} ${server}@${R} ${keytab} ${cache} || \
${test_ap_req} --no-verify-pac ${server}@${R} ${keytab} ${cache} || \
{ ec=1 ; eval "${testfailed}"; }
${kdestroy} --credential=${server}@${R}
done

View File

@@ -134,6 +134,12 @@ ${kgetcred} ${server}@${R} || { ec=1 ; eval "${testfailed}"; }
echo "Verify PAC on server (no pac)"; > messages.log
${test_apreq} --verify-pac ${server}@${R} ${keytab} ${cache} 2> /dev/null && \
{ ec=1 ; eval "${testfailed}"; }
# now that verify-pac is the default, also verify that --no-verify-pac works
${test_apreq} ${server}@${R} ${keytab} ${cache} 2> /dev/null && \
{ ec=1 ; eval "${testfailed}"; }
${test_apreq} --no-verify-pac ${server}@${R} ${keytab} ${cache} 2> /dev/null || \
{ ec=1 ; eval "${testfailed}"; }
${kdestroy}