]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: Enable "old Samba" mode regarding GET_ANC/GET_TGT
authorAndrew Bartlett <abartlet@samba.org>
Thu, 29 Sep 2022 01:54:14 +0000 (14:54 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 4 Oct 2022 02:48:37 +0000 (02:48 +0000)
The chgdcpass server now emulates older verions of Samba that
fail to implement DRSUAPI_DRS_GET_ANC correctly and totally fails to support
DRSUAPI_DRS_GET_TGT.

We now show this is in effect by the fact that tests now fail.

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

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
selftest/knownfail.d/samba-4.5-emulation
selftest/target/Samba4.pm

index 82959240588aac72090dcbd5f0176310a461d250..37baa41822cf92e641eabe2e56115a45850c0581 100644 (file)
@@ -1,2 +1,5 @@
 # This fails as there is no second DC in this enviroment, so it is always the owner
-samba4.drs.getnc_exop.python\(chgdcpass\).getnc_exop.DrsReplicaSyncTestCase.test_FSMONotOwner\(chgdcpass\)
\ No newline at end of file
+samba4.drs.getnc_exop.python\(chgdcpass\).getnc_exop.DrsReplicaSyncTestCase.test_FSMONotOwner\(chgdcpass\)
+# This fails because GET_ANC is now poorly implemented (matching Samba 4.5)
+^samba4.drs.getnc_exop.python\(chgdcpass\).getnc_exop.DrsReplicaSyncTestCase.test_link_utdv_hwm\(chgdcpass\)
+^samba4.drs.samba_tool_drs_critical.python\(chgdcpass\).samba_tool_drs_critical.SambaToolDrsTests.test_samba_tool_drs_clone_dc_critical_object_chain\(chgdcpass:local\)
\ No newline at end of file
index e5ae57cb7fcc678c19ced40e9a78699e0045f393..dcf00e85e9c7a0d414c4e7068de108ee259de708 100755 (executable)
@@ -2054,10 +2054,22 @@ sub provision_chgdcpass($$)
        # This environment disallows the use of this password
        # (and also removes the default AD complexity checks)
        my $unacceptable_password = "Paßßword-widk3Dsle32jxdBdskldsk55klASKQ";
+
+       # This environment also sets some settings that are unusual,
+       # to test specific behaviours.  In particular, this
+       # environment fails to correctly support DRSUAPI_DRS_GET_ANC
+       # like Samba before 4.5 and DRSUAPI_DRS_GET_TGT before 4.8
+       #
+       # Additionally, disabling DRSUAPI_DRS_GET_TGT causes all links
+       # to be sent last (in the final chunk), which is like Samba
+       # before 4.8.
+
        my $extra_smb_conf = "
        check password script = $self->{srcdir}/selftest/checkpassword_arg1.sh ${unacceptable_password}
        allow dcerpc auth level connect:lsarpc = yes
        dcesrv:max auth states = 8
+        drs:broken_samba_4.5_get_anc_emulation = true
+        drs:get_tgt_support = false
 ";
        my $extra_provision_options = ["--dns-backend=BIND9_DLZ"];
        my $ret = $self->provision($prefix,