mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
gp: Test with binary content for certificate data
This fails all GPO-related tests that call `gpupdate --rsop`. Signed-off-by: Gabriel Nagy <gabriel.nagy@canonical.com> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: David Mulder <dmulder@samba.org>
This commit is contained in:
parent
bce3a89204
commit
1ef722cf66
@ -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,
|
||||
})
|
||||
|
13
selftest/knownfail.d/gpo
Normal file
13
selftest/knownfail.d/gpo
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user