1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/python/samba/tests
Gabriel Nagy 0d1ff69936 gpo: Test certificate policy without NDES
As of 8231eaf856, the NDES feature is no longer required on Windows, as
cert auto-enroll can use the certificate from the LDAP request.

However, 157335ee93 changed the implementation to convert the LDAP
certificate to base64 due to it failing to cleanly convert to a string.

Because of insufficient test coverage I missed handling the part where
NDES is disabled or not reachable and the LDAP certificate was imported.
The call to load_der_x509_certificate now fails with an error because it
expects binary data, yet it receives a base64 encoded string.

This adds a test to confirm the issue.

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

Signed-off-by: Gabriel Nagy <gabriel.nagy@canonical.com>
Reviewed-by: David Mulder <dmulder@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2024-01-22 15:41:36 +00:00
..
bin gpupdate: Test Drive Maps Client Side Extension 2023-10-16 00:59:32 +00:00
blackbox python:tests: Remove leftover debugging message 2023-12-08 02:28:33 +00:00
dcerpc tests/dcerpc: Remove unused imports 2023-12-08 02:28:33 +00:00
dns_forwarder_helpers python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
emulate python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
kcc python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
krb5 python: Generate HRESULT definitions automatically 2024-01-15 01:56:53 +00:00
ndr python:tests: Catch strings passed to utf16_encoded_len() with embedded nulls 2023-12-21 20:21:34 +00:00
samba_tool selftest: Add tests for "samba-tool user get-kerberos-ticket" 2023-12-21 02:05:38 +00:00
__init__.py python:tests: Raise exception of more specific type NotImplementedError 2023-12-21 20:21:34 +00:00
audit_log_base.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
audit_log_dsdb.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
audit_log_pass_change.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
auth_log_base.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
auth_log_ncalrpc.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
auth_log_netlogon_bad_creds.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
auth_log_netlogon.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
auth_log_pass_change.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
auth_log_samlogon.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
auth_log_winbind.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
auth_log.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
auth.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
common.py python: Remove unused imports 2023-08-30 02:15:29 +00:00
complex_expressions.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
compression.py python: Remove unused imports 2023-08-30 02:15:29 +00:00
conditional_ace_assembler.py pytest: conditional_ace assembler assembles full descriptor 2023-09-26 23:45:35 +00:00
conditional_ace_bytes.py python:tests: Remove unused imports 2023-12-08 02:28:33 +00:00
conditional_ace_claims.py python:tests: Remove unused imports 2023-12-08 02:28:33 +00:00
core.py python:samba:tests: Fix code spelling 2023-06-23 13:44:31 +00:00
cred_opt.py python/samba/tests: Fix incorrect super-class in cred_opt.py setUp() 2023-11-30 02:03:05 +00:00
credentials.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
dckeytab.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
dns_aging.py pytest/dns_aging: Assert that the name of the node to search for is a string 2023-08-30 02:15:29 +00:00
dns_base.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
dns_forwarder.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
dns_invalid.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
dns_packet.py python:tests: Remove unnecessary f‐strings 2023-10-25 22:23:37 +00:00
dns_tkey.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
dns_wildcard.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
dns.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
docs.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
domain_backup_offline.py python: Remove unused imports 2023-08-30 02:15:29 +00:00
domain_backup.py python:tests: Rename parameter to be consistent with overridden method 2023-12-21 20:21:34 +00:00
dsdb_api.py
dsdb_dns.py python: Remove unused imports 2023-08-30 02:15:29 +00:00
dsdb_lock.py python: Remove unused imports 2023-08-30 02:15:29 +00:00
dsdb_schema_attributes.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
dsdb.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
encrypted_secrets.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
gensec.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
get_opt.py
getdcname.py python:tests: Complete assertion messages 2023-08-30 02:15:29 +00:00
gkdi.py python: Generate HRESULT definitions automatically 2024-01-15 01:56:53 +00:00
glue.py python: get rid of pointless empty overridden methods 2023-11-30 01:05:32 +00:00
gpo_member.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
gpo.py gpo: Test certificate policy without NDES 2024-01-22 15:41:36 +00:00
graph.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
group_audit.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
hostconfig.py
imports.py
join.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
krb5_credentials.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
ldap_raw.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
ldap_referrals.py python: get rid of pointless empty overridden methods 2023-11-30 01:05:32 +00:00
ldap_spn.py
ldap_upn_sam_account.py python:tests: Fix usage line 2023-08-30 02:15:29 +00:00
ldap_whoami.py python:tests: Remove semicolons 2023-10-13 03:50:31 +00:00
libsmb-basic.py tests: Add reproducer for bug 15487 2023-10-10 08:19:29 +00:00
libsmb.py python: move clean_file() to samba/tests/libsmb.py 2023-11-13 18:35:32 +00:00
loadparm.py
logfiles.py
lsa_string.py
messaging.py python:tests: Ensure we clean up callbacks in pymessaging tests 2023-11-15 23:11:13 +00:00
net_join_no_spnego.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
net_join.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
netbios.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
netcmd.py
netlogonsvc.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
ntacls_backup.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
ntacls.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
ntlm_auth_base.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
ntlm_auth_krb5.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
ntlm_auth.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
ntlmdisabled.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
pam_winbind_chauthtok.py
pam_winbind_setcred.py
pam_winbind_warn_pwd_expire.py
pam_winbind.py
param.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
password_hash_fl2003.py python: get rid of pointless empty overridden methods 2023-11-30 01:05:32 +00:00
password_hash_fl2008.py python: get rid of pointless empty overridden methods 2023-11-30 01:05:32 +00:00
password_hash_gpgme.py python: get rid of pointless empty overridden methods 2023-11-30 01:05:32 +00:00
password_hash_ldap.py python: get rid of pointless empty overridden methods 2023-11-30 01:05:32 +00:00
password_hash.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
password_quality.py
password_test.py
policy.py
posixacl.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
prefork_restart.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
process_limits.py python: get rid of pointless empty overridden methods 2023-11-30 01:05:32 +00:00
provision.py
pso.py
py_credentials.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
registry.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
reparsepoints.py python:tests: Remove semicolons 2023-10-13 03:50:31 +00:00
s3_net_join.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
s3idmapdb.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
s3param.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
s3passdb.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
s3registry.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
s3windb.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
safe_tarfile.py python: Remove unused imports 2023-08-30 02:15:29 +00:00
samba3sam.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
samba_startup_fl_change.py python: Remove unused imports 2023-08-30 02:15:29 +00:00
samba_upgradedns_lmdb.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
samdb_api.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
samdb.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
sddl_conditional_ace.py pytest: sddl tests with conditional ACEs 2023-09-26 23:45:35 +00:00
sddl.py pytest:sddl: assert SDDLValueError values make sense 2023-11-01 20:10:46 +00:00
security_descriptors.py libcli/security/tests: gunzip the oversized-acls test vectors 2023-11-27 02:10:12 +00:00
security.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
segfault.py python:tests: Remove semicolons 2023-10-13 03:50:31 +00:00
sid_strings.py pytests: sid_strings: do not fail if epoch ending has zeros 2023-11-15 04:05:34 +00:00
smb1posix.py python: Remove unused imports 2023-08-30 02:15:29 +00:00
smb2symlink.py python: move clean_file() to samba/tests/libsmb.py 2023-11-13 18:35:32 +00:00
smb3unix.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
smb-notify.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
smb.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
smbconf.py python:tests: Don’t needlessly create single‐element tuple 2023-12-21 20:21:34 +00:00
smbd_base.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
smbd_fuzztest.py python:tests: Remove semicolons 2023-10-13 03:50:31 +00:00
source_chars.py python:tests: Remove references to now-gone files 2023-08-08 04:39:37 +00:00
source.py python:tests: Permit newer copyright notice 2023-12-08 02:28:33 +00:00
strings.py
subunitrun.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
tdb_util.py python: get rid of pointless empty overridden methods 2023-11-30 01:05:32 +00:00
test_pam_winbind_chauthtok.sh
test_pam_winbind_setcred.sh
test_pam_winbind_warn_pwd_expire.sh
test_pam_winbind.sh
token_factory.py pytest: token_factory note that a flag is not set 2023-11-27 22:37:32 +00:00
upgrade.py
upgradeprovision.py python: tests: update all super calls to python 3 style in tests 2023-11-30 01:05:32 +00:00
upgradeprovisionneeddc.py python: Remove unused parameter ‘samdb’ 2023-12-14 03:31:37 +00:00
usage.py python:tests: Move NDR tests to their own directory 2023-11-20 21:50:32 +00:00
xattr.py python:samba:tests: Fix code spelling 2023-06-23 13:44:31 +00:00