selftest: Run python.samba.tests.dcerpc.raw_protocol against S3 ad_member
authorSamuel Cabrero <scabrero@samba.org>
Thu, 3 Oct 2019 12:18:17 +0000 (14:18 +0200)
committerSamuel Cabrero <scabrero@sn-devel-184>
Fri, 20 Mar 2020 15:36:31 +0000 (15:36 +0000)
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 <scabrero@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/knownfail
selftest/target/Samba3.pm
source4/selftest/tests.py

index 4dc434aca7ec58f27f851761e170cc75077d640d..d7c20eb5ca6124ce227ff4858ec1a4ad79977e65 100644 (file)
 ^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
index 5a23715b19985fe21cbb726ed2fbd9cfdb8ef7cd..92d6ce3d7199a24307db839be7279db7035e71d0 100755 (executable)
@@ -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
index 0fd563a63cfcf8cabf5282be9616489d6e4aded2..1a8116332b9663f0b555dbc4b049190ad05accb0 100755 (executable)
@@ -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"'],