1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/python/samba/tests
Joseph Sutton 5c744ff9f7 tests/krb5: Test we get correct values for integer syntax claims
Windows erroneously shifts integer syntax claim values four bytes to the
right, resulting in incorrect values (if only one claim is present) or
corrupt claims data that cannot be unpacked (if other claims are
present). There's no reason to emulate such broken behaviour.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-03-08 04:39:32 +00:00
..
bin gpo: Remove sscep depends from Cert Auto Enroll 2022-05-13 14:46:29 +00:00
blackbox python:tests: Tell dns.resolver to not read /etc/resolv.conf 2023-02-20 21:58:32 +00:00
dcerpc python: fix mutable default arguments 2023-02-23 23:33:46 +00:00
dns_forwarder_helpers libcli/dns.c: dns forwarder port test changes 2021-09-28 09:44:35 +00:00
emulate python compat: remove StringIO 2020-08-11 16:37:35 +00:00
kcc python: fix mutable default arguments 2023-02-23 23:33:46 +00:00
krb5 tests/krb5: Test we get correct values for integer syntax claims 2023-03-08 04:39:32 +00:00
samba_tool python: fix mutable default arguments 2023-02-23 23:33:46 +00:00
__init__.py python: fix mutable default arguments 2023-02-23 23:33:46 +00:00
audit_log_base.py python: remove all 'from __future__ import print_function' 2021-04-28 03:43:34 +00:00
audit_log_dsdb.py python: Replace calls to deprecated methods 2023-01-30 09:00:39 +00:00
audit_log_pass_change.py python: Replace calls to deprecated methods 2023-01-30 09:00:39 +00:00
auth_log_base.py python: Remove unused imports in auth_log tests 2022-10-21 03:57:33 +00:00
auth_log_ncalrpc.py pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +00:00
auth_log_netlogon_bad_creds.py python2 reduction: Merge remaining compat code into common 2020-10-02 14:49:36 +00:00
auth_log_netlogon.py python compat: remove text_type 2020-08-11 16:37:35 +00:00
auth_log_pass_change.py python/samba/tests: fix samba.tests.auth_log_pass_change for later gnutls 2022-10-25 10:30:59 +00:00
auth_log_samlogon.py python compat: remove text_type 2020-08-11 16:37:35 +00:00
auth_log_winbind.py python2 reduction: Merge remaining compat code into common 2020-10-02 14:49:36 +00:00
auth_log.py python: Fix invalid escape by using a raw string 2022-10-21 03:57:33 +00:00
auth.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
common.py python: Move dsdb_Dn to samdb 2020-10-02 13:29:35 +00:00
complex_expressions.py python: remove all 'from __future__ import print_function' 2021-04-28 03:43:34 +00:00
compression.py lib/compression: add simple python bindings 2022-12-22 19:50:33 +00:00
core.py pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +00:00
cred_opt.py samba-tool: Use authentication file to pass credentials 2022-10-04 02:48:37 +00:00
credentials.py Revert "cli_credentials_parse_string: fix parsing of principals" 2020-11-05 06:30:31 +00:00
dckeytab.py python: wrap 'import dckeytab' in an explanatory function 2020-07-17 07:17:40 +00:00
dns_aging.py pytest/dns_aging: remove duplicate tests 2021-11-22 10:28:34 +00:00
dns_base.py pytest:dns_base: make_txt_update can set arbitrary TTL 2021-06-11 08:38:34 +00:00
dns_forwarder.py libcli/dns.c: dns forwarder port test changes 2021-09-28 09:44:35 +00:00
dns_invalid.py python/tests/dns*: remove unused imports 2018-10-25 21:45:54 +02:00
dns_packet.py CVE-2020-14303 Ensure an empty packet will not DoS the NBT server 2020-07-02 09:01:41 +00:00
dns_tkey.py python: Fix usage strings 2021-09-04 00:10:37 +00:00
dns_wildcard.py pytests/dns: use dnsserver.record_from_string 2021-04-08 21:54:35 +00:00
dns.py python: fix mutable default arguments 2023-02-23 23:33:46 +00:00
docs.py pytest/docs: better spelling of set_smbconf_arbitrary 2021-11-22 11:18:09 +00:00
domain_backup_offline.py python: fix mutable default arguments 2023-02-23 23:33:46 +00:00
domain_backup.py python:tests: Fix domain_backup test with Python 3.11 2023-02-20 21:58:32 +00:00
dsdb_api.py pydsdb: Add API to return strings of known UF_ flags 2021-09-02 05:03:31 +00:00
dsdb_dns.py pydns: expose dns timestamp utils to python, and test 2021-03-29 23:20:37 +00:00
dsdb_lock.py PEP8: fix E303: too many blank lines (2) 2018-08-24 07:49:30 +02:00
dsdb_schema_attributes.py selftest: Add prefix to new schema attributes to avoid flapping dsdb_schema_attributes 2021-09-06 02:32:51 +00:00
dsdb.py s4-dsdb: Add tests of SamDB.get_nc_root() 2023-01-31 12:50:32 +00:00
encrypted_secrets.py pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +00:00
gensec.py python/tests/gensec: add spnego downgrade python tests 2019-10-12 14:33:33 +00:00
get_opt.py python: Streamline option parser of python tools 2021-06-20 23:26:32 +00:00
getdcname.py selftest: Improve an error message 2019-01-11 06:01:01 +01:00
glue.py pyglue: add float2nttime() and nttime2float() 2021-03-01 03:50:35 +00:00
gpo_member.py gpo: Move Group Policy code below gp directory 2022-05-31 20:15:45 +00:00
gpo.py python: Replace calls to deprecated methods 2023-01-30 09:00:39 +00:00
graph.py python: remove all 'from __future__ import print_function' 2021-04-28 03:43:34 +00:00
group_audit.py python: Replace calls to deprecated methods 2023-01-30 09:00:39 +00:00
hostconfig.py pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +00:00
imports.py python: Test samdb import 2021-03-10 21:43:34 +00:00
join.py pytest/join: use TestCaseInTempDir.rm_files/dirs 2022-09-06 21:12:36 +00:00
krb5_credentials.py python tests: fix format() strings for Python 2.6 2018-09-21 20:04:23 +02:00
ldap_raw.py s4 cldap server tests: request size limit tests 2020-05-10 21:45:38 +00:00
ldap_referrals.py python: remove all 'from __future__ import print_function' 2021-04-28 03:43:34 +00:00
ldap_spn.py CVE-2022-0336: pytest: Add a test for an SPN conflict with a re-added SPN 2022-01-31 15:27:37 +00:00
ldap_upn_sam_account.py CVE-2020-25722 pytest: test sAMAccountName/userPrincipalName over ldap 2021-11-09 19:45:33 +00:00
libsmb-basic.py tests: Show that the case sensitive large dir optimization is broken 2023-02-24 07:49:39 +00:00
libsmb.py libsmb: Add "DOMAIN" to authentication creds 2022-11-22 18:27:33 +00:00
loadparm.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
logfiles.py tests: adapt logging test for s3. 2022-06-17 01:28:30 +00:00
lsa_string.py python/tests/lsa_string: remove duplicate method 2018-10-25 21:45:59 +02:00
messaging.py python compat: remove integer_types 2020-08-11 16:37:35 +00:00
ndr.py selftest: Add test of NDR marshalling from python, starting with wbint 2021-06-02 03:56:36 +00:00
net_join_no_spnego.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
net_join.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
netbios.py pytests: move ValidNetbiosNameTests to samba.tests.netbios 2022-09-06 21:12:36 +00:00
netcmd.py pytest/netcmd: fix for new samba-tool api 2022-09-08 22:34:36 +00:00
netlogonsvc.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
ntacls_backup.py netcmd: Fix opening SamDB database for offline backup 2021-03-24 02:08:54 +00:00
ntacls.py pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +00:00
ntlm_auth_base.py selftest: Add a new base class for ntlm_auth tests 2018-12-19 12:42:09 +01:00
ntlm_auth_krb5.py tests/ntlm_auth: Port ntlm_auth_krb5 tests to python 2018-12-19 12:42:14 +01:00
ntlm_auth.py ntlm_auth: Adapt --diagnostics mode to expect that the DC does not support LANMAN by default 2022-03-17 01:57:38 +00:00
ntlmdisabled.py python/tests/*: remove unused imports 2018-10-25 21:45:54 +02:00
pam_winbind_chauthtok.py tests/pam_winbind.py: allow upn names to be used in USERNAME with an empty DOMAIN value 2019-09-24 18:30:37 +00:00
pam_winbind_setcred.py selftest: Add a test for PamLogOff 2022-04-08 20:13:37 +00:00
pam_winbind_warn_pwd_expire.py tests/pam_winbind.py: allow upn names to be used in USERNAME with an empty DOMAIN value 2019-09-24 18:30:37 +00:00
pam_winbind.py tests/pam_winbind.py: allow upn names to be used in USERNAME with an empty DOMAIN value 2019-09-24 18:30:37 +00:00
param.py selftest: use 10.53.57.0/8 instead of 127.0.0.1/8 2020-03-27 09:02:38 +00:00
password_hash_fl2003.py pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +00:00
password_hash_fl2008.py pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +00:00
password_hash_gpgme.py pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +00:00
password_hash_ldap.py python compat: remove text_type 2020-08-11 16:37:35 +00:00
password_hash.py python compat: remove text_type 2020-08-11 16:37:35 +00:00
password_quality.py python/tests: remove unused imports 2018-10-25 21:45:54 +02:00
password_test.py python/tests/*: remove unused imports 2018-10-25 21:45:54 +02:00
policy.py pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +00:00
posixacl.py pytest: posixacl getntacl should raise OSError 2022-09-07 05:01:37 +00:00
prefork_restart.py python: Replace calls to deprecated methods 2023-01-30 09:00:39 +00:00
process_limits.py python: remove all 'from __future__ import print_function' 2021-04-28 03:43:34 +00:00
provision.py provision: Remove final code for the LDAP backend 2020-04-23 06:12:20 +00:00
pso.py python tests: fix format() strings for Python 2.6 2018-09-21 20:04:23 +02:00
py_credentials.py CVE-2022-32743 tests/py_credentials: Add tests for setting dNSHostName with LogonGetDomainInfo() 2022-07-28 22:47:37 +00:00
registry.py pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +00:00
reparsepoints.py tests: Test error codes for SET_REPARSE_POINT 2022-12-05 15:06:32 +00:00
s3_net_join.py pytest: s3_net_join: avoid name clash 2021-10-20 12:02:33 +00:00
s3idmapdb.py pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +00:00
s3param.py pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +00:00
s3passdb.py pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +00:00
s3registry.py pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +00:00
s3windb.py pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +00:00
safe_tarfile.py CVE-2007-4559 python: ensure sanity in our tarfiles 2022-10-04 03:48:43 +00:00
samba3sam.py python: remove all 'from __future__ import print_function' 2021-04-28 03:43:34 +00:00
samba_upgradedns_lmdb.py test upgradedns: ensure lmdb lock files linked 2019-12-20 07:35:41 +00:00
samdb_api.py pytest/samdb_api: use TestCaseInTempDir.rm_files 2022-09-06 21:12:36 +00:00
samdb.py pytest/samdb: use TestCaseInTempDir.rm_files/.rm_dirs 2022-09-06 21:12:36 +00:00
sddl.py libcli: Fix parsing access flags from multiple tables 2021-04-21 00:04:36 +00:00
security.py python security: Add unit tests for comparing ACEs and exporting as SDDL 2022-09-27 16:46:35 +00:00
segfault.py pytest/segfault: abort for generate_random_bytes(-1) 2022-08-26 07:59:32 +00:00
sid_strings.py python:tests: Allocate OID range for testing to avoid collisions 2022-08-25 13:55:47 +00:00
smb1posix.py tests: Show that in smb1 posix we don't treat dirs as case sensitive 2022-12-15 10:34:34 +00:00
smb2symlink.py tests: Ignore symlink trusts flags in symlink error returns 2022-12-05 15:06:32 +00:00
smb3unix.py python:tests: Avoid exceptions in cleanup code if a test fails in smb3unix.py 2023-01-26 12:15:33 +00:00
smb-notify.py spelling: connnect encrytion exisit expection explicit invalide missmatch paramater paramter partion privilige relase reponse seperate unkown verson authencication progagated 2022-06-10 18:12:33 +00:00
smb.py pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +00:00
smbconf.py lib/smbconf: expose smbconf error codes to python wrapper 2022-06-08 13:13:10 +00:00
smbd_base.py CVE-2019-3870 pysmbd: Include tests to show the outside umask has no impact 2019-04-08 10:27:34 +00:00
smbd_fuzztest.py python: tests. Add test for fuzzing smbd crash bug. 2019-12-04 20:02:40 +00:00
source_chars.py CVE-2022-44640 selftest: Exclude Heimdal fuzz-inputs from source_chars test 2022-12-06 12:40:35 +00:00
source.py python/tests/krb5: modify rfc4120.asn1 in order to generate pyasn1 code 2020-03-27 18:17:35 +00:00
strings.py pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +00:00
subunitrun.py pytests/subunitrun: not usefully executable 2019-07-02 04:21:36 +00:00
tdb_util.py
test_pam_winbind_chauthtok.sh python: Reformat shell scripts 2022-03-03 00:59:34 +00:00
test_pam_winbind_setcred.sh selftest: Add a test for PamLogOff 2022-04-08 20:13:37 +00:00
test_pam_winbind_warn_pwd_expire.sh python: Reformat shell scripts 2022-03-03 00:59:34 +00:00
test_pam_winbind.sh python: Reformat shell scripts 2022-03-03 00:59:34 +00:00
upgrade.py pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +00:00
upgradeprovision.py pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +00:00
upgradeprovisionneeddc.py python: Replace calls to deprecated methods 2023-01-30 09:00:39 +00:00
usage.py python: fix mutable default arguments 2023-02-23 23:33:46 +00:00
xattr.py pytests: heed assertEquals deprecation warning en-masse 2020-02-07 10:37:37 +00:00