From: Samuel Cabrero Date: Thu, 3 Oct 2019 12:18:17 +0000 (+0200) Subject: selftest: Run python.samba.tests.dcerpc.raw_protocol against S3 ad_member X-Git-Tag: ldb-2.2.0~1371 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d809da3acefde4a365aea52ea60649967e561633;p=thirdparty%2Fsamba.git selftest: Run python.samba.tests.dcerpc.raw_protocol against S3 ad_member The goal is to pass the raw protocol testsuite against s3 RPC server. To do so we need to enable epmd and lsasd daemons, as the testsuite connects to the endpoint mapper and lsa endpoints using NCACN_IP_TCP and NCACN_NP transports. Signed-off-by: Samuel Cabrero Reviewed-by: Andrew Bartlett --- diff --git a/selftest/knownfail b/selftest/knownfail index 4dc434aca7e..d7c20eb5ca6 100644 --- a/selftest/knownfail +++ b/selftest/knownfail @@ -337,6 +337,7 @@ ^samba.tests.dcerpc.raw_protocol.*.TestDCERPC_BIND.test_no_auth_presentation_ctx_invalid4 ^samba.tests.dcerpc.raw_protocol.*.TestDCERPC_BIND.test_spnego_change_auth_type2 ^samba.tests.dcerpc.raw_protocol.*.TestDCERPC_BIND.test_spnego_change_transfer +^samba.tests.dcerpc.raw_protocol.*\(ad_member\) ^samba4.rpc.echo.*on.*with.object.echo.doublepointer.*nt4_dc ^samba4.rpc.echo.*on.*with.object.echo.surrounding.*nt4_dc ^samba4.rpc.echo.*on.*with.object.echo.enum.*nt4_dc diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index 5a23715b199..92d6ce3d719 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -658,6 +658,18 @@ sub setup_ad_member winbind scan trusted domains = no winbind use krb5 enterprise principals = yes + allow dcerpc auth level connect:lsarpc = yes + dcesrv:max auth states = 8 + + rpc_server:epmapper = external + rpc_server:lsarpc = external + rpc_server:samr = external + rpc_server:netlogon = disabled + rpc_server:register_embedded_np = yes + + rpc_daemon:epmd = fork + rpc_daemon:lsasd = fork + [sub_dug] path = $share_dir/D_%D/U_%U/G_%G writeable = yes diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index 0fd563a63cf..1a8116332b9 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -750,8 +750,12 @@ planoldpythontestsuite( planoldpythontestsuite("ad_dc_ntvfs", "samba.tests.dcerpc.dnsserver", extra_args=['-U"$USERNAME%$PASSWORD"']) planoldpythontestsuite("ad_dc", "samba.tests.dcerpc.dnsserver", extra_args=['-U"$USERNAME%$PASSWORD"']) -planoldpythontestsuite("chgdcpass", "samba.tests.dcerpc.raw_protocol", - environ={'MAX_NUM_AUTH': '8'}) + +for env in ["chgdcpass", "ad_member"]: + planoldpythontestsuite(env, "samba.tests.dcerpc.raw_protocol", + environ={"MAX_NUM_AUTH": "8", + "USERNAME": "$DC_USERNAME", + "PASSWORD": "$DC_PASSWORD"}) if have_heimdal_support: planoldpythontestsuite("ad_dc:local", "samba.tests.auth_log", extra_args=['-U"$USERNAME%$PASSWORD"'],