diff options
author | Noel Power <noel.power@suse.com> | 2018-02-16 15:53:16 +0000 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-03-02 14:07:15 +0100 |
commit | ebe9a86eadca37313dd85d9b317197bb7fa2b7e5 (patch) | |
tree | 88c37ff517ca9f7f2d90298511c07af0e6cdd99f | |
parent | 0af66455ef87626b97689d75d17782d95455b55e (diff) | |
download | samba-ebe9a86eadca37313dd85d9b317197bb7fa2b7e5.tar.gz |
testprogs: 'net ads keytab create' expected failures should now pass
Following the commit to change the behaviour of 'net ads keytab create'
some tests previously failing should now pass.
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
-rwxr-xr-x | testprogs/blackbox/test_net_ads.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testprogs/blackbox/test_net_ads.sh b/testprogs/blackbox/test_net_ads.sh index 378b5a37075..f83ce01aae6 100755 --- a/testprogs/blackbox/test_net_ads.sh +++ b/testprogs/blackbox/test_net_ads.sh @@ -131,7 +131,7 @@ found_ad=$($net_tool ads setspn list -U$DC_USERNAME%$DC_PASSWORD | grep $service found_keytab=$($net_tool ads keytab list -U$DC_USERNAME%$DC_PASSWORD --option="kerberosmethod=dedicatedkeytab" --option="dedicatedkeytabfile=$dedicated_keytab_file" | grep $service | wc -l) # test after create that a spn that exists in the keytab but shouldn't # be written to the AD. -testit_expected_failure "test spn service doensn't exist in AD but is present in keytab file after keytab create" test $found_ad -eq 0 -a $found_keytab -gt 1 || failed=`expr $failed + 1` +testit "test spn service doensn't exist in AD but is present in keytab file after keytab create" test $found_ad -eq 0 -a $found_keytab -gt 1 || failed=`expr $failed + 1` # SPN parser is very basic but does detect some illegal combination |