summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
authorIsaac Boukris <iboukris@gmail.com>2019-10-07 23:51:19 +0300
committerStefan Metzmacher <metze@samba.org>2019-10-16 12:15:54 +0000
commit9d2d4cf9c93684ddb0dda0ed51febc6a2a2132c4 (patch)
tree03687941590729d1b4f1b0e0eb4820e3f4855002 /selftest
parent24a43d7c7429fd89938bed410d2a433c61c5f9d7 (diff)
downloadsamba-9d2d4cf9c93684ddb0dda0ed51febc6a2a2132c4.tar.gz
selftest: s3: add a test for spnego downgrade from krb5 to ntlm
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14106 Signed-off-by: Isaac Boukris <iboukris@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'selftest')
-rw-r--r--selftest/knownfail.d/spnego_downgrade1
-rwxr-xr-xselftest/target/Samba3.pm9
2 files changed, 10 insertions, 0 deletions
diff --git a/selftest/knownfail.d/spnego_downgrade b/selftest/knownfail.d/spnego_downgrade
new file mode 100644
index 00000000000..494a55fd43d
--- /dev/null
+++ b/selftest/knownfail.d/spnego_downgrade
@@ -0,0 +1 @@
+^samba3.blackbox.smbd_no_krb5.test_spnego_downgrade
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm
index 70f535e1a49..75960dbc790 100755
--- a/selftest/target/Samba3.pm
+++ b/selftest/target/Samba3.pm
@@ -1679,6 +1679,7 @@ sub provision($$$$$$$$$)
my $dfqconffile="$libdir/dfq.conf";
my $errorinjectconf="$libdir/error_inject.conf";
my $delayinjectconf="$libdir/delay_inject.conf";
+ my $globalinjectconf="$libdir/global_inject.conf";
my $nss_wrapper_pl = "$ENV{PERL} $self->{srcdir}/third_party/nss_wrapper/nss_wrapper.pl";
my $nss_wrapper_passwd = "$privatedir/passwd";
@@ -1860,6 +1861,8 @@ sub provision($$$$$$$$$)
#it just means we ALLOW one to be configured.
allow insecure wide links = yes
+ include = $globalinjectconf
+
# Begin extra options
$extra_options
# End extra options
@@ -2358,6 +2361,12 @@ sub provision($$$$$$$$$)
}
close(DFQCONF);
+ unless (open(DELAYCONF, ">$globalinjectconf")) {
+ warn("Unable to open $globalinjectconf");
+ return undef;
+ }
+ close(DELAYCONF);
+
##
## create a test account
##