From: Gabriel Nagy Date: Fri, 18 Aug 2023 14:06:43 +0000 (+0300) Subject: gp: Test with binary content for certificate data X-Git-Tag: tevent-0.16.0~799 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ef722cf66f9ec99f52939f1cfca031c5fe1ad70;p=thirdparty%2Fsamba.git gp: Test with binary content for certificate data This fails all GPO-related tests that call `gpupdate --rsop`. Signed-off-by: Gabriel Nagy Reviewed-by: Joseph Sutton Reviewed-by: David Mulder --- diff --git a/python/samba/tests/gpo.py b/python/samba/tests/gpo.py index 442c1c00d02..0e242ec03d9 100644 --- a/python/samba/tests/gpo.py +++ b/python/samba/tests/gpo.py @@ -6896,14 +6896,14 @@ class GPOTests(tests.TestCase): ldb.add({'dn': certa_dn, 'objectClass': 'certificationAuthority', 'authorityRevocationList': ['XXX'], - 'cACertificate': 'XXX', + 'cACertificate': b'0\x82\x03u0\x82\x02]\xa0\x03\x02\x01\x02\x02\x10I', 'certificateRevocationList': ['XXX'], }) # Write the dummy pKIEnrollmentService enroll_dn = 'CN=%s,CN=Enrollment Services,%s' % (ca_cn, confdn) ldb.add({'dn': enroll_dn, 'objectClass': 'pKIEnrollmentService', - 'cACertificate': 'XXXX', + 'cACertificate': b'0\x82\x03u0\x82\x02]\xa0\x03\x02\x01\x02\x02\x10I', 'certificateTemplates': ['Machine'], 'dNSHostName': hostname, }) @@ -7448,14 +7448,14 @@ class GPOTests(tests.TestCase): ldb.add({'dn': certa_dn, 'objectClass': 'certificationAuthority', 'authorityRevocationList': ['XXX'], - 'cACertificate': 'XXX', + 'cACertificate': b'0\x82\x03u0\x82\x02]\xa0\x03\x02\x01\x02\x02\x10I', 'certificateRevocationList': ['XXX'], }) # Write the dummy pKIEnrollmentService enroll_dn = 'CN=%s,CN=Enrollment Services,%s' % (ca_cn, confdn) ldb.add({'dn': enroll_dn, 'objectClass': 'pKIEnrollmentService', - 'cACertificate': 'XXXX', + 'cACertificate': b'0\x82\x03u0\x82\x02]\xa0\x03\x02\x01\x02\x02\x10I', 'certificateTemplates': ['Machine'], 'dNSHostName': hostname, }) diff --git a/selftest/knownfail.d/gpo b/selftest/knownfail.d/gpo new file mode 100644 index 00000000000..0aad59607c2 --- /dev/null +++ b/selftest/knownfail.d/gpo @@ -0,0 +1,13 @@ +^samba.tests.gpo.samba.tests.gpo.GPOTests.test_gp_user_centrify_crontab_ext +^samba.tests.gpo.samba.tests.gpo.GPOTests.test_gp_user_scripts_ext +^samba.tests.gpo.samba.tests.gpo.GPOTests.test_rsop +^samba.tests.gpo.samba.tests.gpo.GPOTests.test_vgp_access +^samba.tests.gpo.samba.tests.gpo.GPOTests.test_vgp_files +^samba.tests.gpo.samba.tests.gpo.GPOTests.test_vgp_issue +^samba.tests.gpo.samba.tests.gpo.GPOTests.test_vgp_motd +^samba.tests.gpo.samba.tests.gpo.GPOTests.test_vgp_openssh +^samba.tests.gpo.samba.tests.gpo.GPOTests.test_vgp_startup_scripts +^samba.tests.gpo.samba.tests.gpo.GPOTests.test_vgp_sudoers +^samba.tests.gpo.samba.tests.gpo.GPOTests.test_vgp_symlink +^samba.tests.gpo.samba.tests.gpo.GPOTests.test_advanced_gp_cert_auto_enroll_ext +^samba.tests.gpo.samba.tests.gpo.GPOTests.test_gp_cert_auto_enroll_ext