From: Tim Beale Date: Tue, 4 Jul 2017 01:40:31 +0000 (+1200) Subject: selftest: Disable NTLM authentication in ktest environment X-Git-Tag: samba-4.7.0rc1~15 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=831861ecf910504eecab30a7e132f0fa210ed212;p=thirdparty%2Fsamba.git selftest: Disable NTLM authentication in ktest environment This allows us to prove that "ntlm auth = disabled" works Signed-off-by: Tim Beale Reviewed-by: Garming Sam Reviewed-by: Andrew Bartlett BUG: https://bugzilla.samba.org/show_bug.cgi?id=11923 --- diff --git a/selftest/knownfail b/selftest/knownfail index fe51ec2ae21..1cba331bcf0 100644 --- a/selftest/knownfail +++ b/selftest/knownfail @@ -340,3 +340,5 @@ ^samba.tests.netlogonsvc.python\(ad_member\) ^samba.tests.netlogonsvc.python\(simpleserver\) ^samba.tests.netlogonsvc.python\(fileserver\) +# NTLM authentication is (intentionally) disabled in ktest +^samba.tests.ntlmauth.python\(ktest\).ntlmauth.NtlmAuthTests.test_ntlm_connection\(ktest\) diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index abf1b7b2e40..79b1a53ad2d 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -939,6 +939,10 @@ sub setup_ktest($$$) server signing = required server min protocol = SMB3_00 client max protocol = SMB3 + + # This disables NTLM auth against the local SAM, which + # we use can then test this setting by. + ntlm auth = disabled "; my $ret = $self->provision($prefix, "KTEST",