selftest:Samba4: run the raw_protocol test with a limit of 8 auth contexts
authorStefan Metzmacher <metze@samba.org>
Fri, 14 Dec 2018 12:51:27 +0000 (13:51 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 12 Jan 2019 02:13:42 +0000 (03:13 +0100)
This is much faster than exploring the limit of 2049 during autobuild.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
selftest/target/Samba4.pm
source4/selftest/tests.py

index a44ad32..fe6527c 100755 (executable)
@@ -2052,6 +2052,7 @@ sub provision_chgdcpass($$)
        my $extra_smb_conf = "
        check password script = sed -e '/$unacceptable_password/{;q1}; /$unacceptable_password/!{q0}'
        allow dcerpc auth level connect:lsarpc = yes
+       dcesrv:max auth states = 8
 ";
        my $extra_provision_options = ["--use-ntvfs"];
        push (@{$extra_provision_options}, "--dns-backend=BIND9_DLZ");
index 3288706..a1f3842 100755 (executable)
@@ -703,7 +703,9 @@ planoldpythontestsuite(
 
 planoldpythontestsuite("ad_dc_ntvfs", "samba.tests.dcerpc.dnsserver", extra_args=['-U"$USERNAME%$PASSWORD"'], py3_compatible=True)
 planoldpythontestsuite("ad_dc", "samba.tests.dcerpc.dnsserver", extra_args=['-U"$USERNAME%$PASSWORD"'], py3_compatible=True)
-planoldpythontestsuite("chgdcpass", "samba.tests.dcerpc.raw_protocol", extra_args=['-U"$USERNAME%$PASSWORD"'], py3_compatible=True)
+planoldpythontestsuite("chgdcpass", "samba.tests.dcerpc.raw_protocol", py3_compatible=True,
+                       environ={'MAX_NUM_AUTH': '8'})
+
 if have_heimdal_support:
     planoldpythontestsuite("ad_dc:local", "samba.tests.auth_log", extra_args=['-U"$USERNAME%$PASSWORD"'],
                            environ={'CLIENT_IP': '127.0.0.11',