From: Andrew Bartlett Date: Thu, 8 Mar 2012 04:37:29 +0000 (+1100) Subject: selftest: add more tests for different authentication codepaths X-Git-Tag: tdb-1.2.10~298 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=79753ec02c8315a55557c418f3a802fd2631878f;p=thirdparty%2Fsamba.git selftest: add more tests for different authentication codepaths --- diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py index 591a3517b81..f0e10030487 100755 --- a/source3/selftest/tests.py +++ b/source3/selftest/tests.py @@ -127,6 +127,10 @@ tests=["--ping", "--separator", "--allocate-uid", "--allocate-gid"] +for options in ["--option=clientusespnego=no", " --option=clientntlmv2auth=no --option=clientlanmanauth=yes --max-protocol=LANMAN2", ""]: + env = "s3dc" + plantestsuite("samba3.blackbox.smbclient_auth.plain (%s) %s" % (env, options), env, [os.path.join(samba3srcdir, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IP', '$DC_USERNAME', '$DC_PASSWORD', binpath('smbclient3'), configuration]) + for env in ["s3dc", "member", "s3member"]: plantestsuite("samba3.blackbox.smbclient_auth.plain (%s)" % env, env, [os.path.join(samba3srcdir, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IP', '$DC_USERNAME', '$DC_PASSWORD', binpath('smbclient3'), configuration]) plantestsuite("samba3.blackbox.smbclient_auth.plain (%s) member creds" % env, env, [os.path.join(samba3srcdir, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IP', '$SERVER\\\\$USERNAME', '$PASSWORD', binpath('smbclient3'), configuration]) diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index d49f253e841..8b44cdcbe63 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -185,6 +185,7 @@ for ntlmoptions in [ "-k no --option=usespnego=no"]: name = "rpc.lsa.secrets on %s with with %s" % (transport, ntlmoptions) plansmbtorturetestsuite('rpc.lsa.secrets', "dc", ["%s:$SERVER[]" % (transport), ntlmoptions, '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN', '--option=gensec:target_hostname=$NETBIOSNAME'], "samba4.%s" % name) + plansmbtorturetestsuite('rpc.lsa.secrets', "s3dc", ["%s:$SERVER[]" % (transport), ntlmoptions, '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN', '--option=gensec:target_hostname=$NETBIOSNAME'], "samba4.%s" % name) transports = ["ncacn_np", "ncacn_ip_tcp"]