1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/python/samba/tests
Stefan Metzmacher 6f52ffab82 python:tests/krb5: add netlogon.py
This adds tests for the application layer encryption used
based on the secure channel session key.

This will get tests for netr_ServerAuthenticateKerberos()
in order to explore its details.

This runs against Windows 2022 as well as Windows 2025 (preview)
using something like this:

SMB_CONF_PATH=/dev/null \
SERVER=172.31.9.118 DC_SERVER=w2022-118.w2022-l7.base \
DOMAIN="W2022-L7" REALM="W2022-L7.BASE" \
ADMIN_USERNAME="Administrator" ADMIN_PASSWORD="A1b2C3d4" \
STRICT_CHECKING=0 \python/samba/tests/krb5/netlogon.py

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2024-12-05 16:46:38 +00:00
..
bin gpupdate: Test Drive Maps Client Side Extension 2023-10-16 00:59:32 +00:00
blackbox python:tests: Fix spelling in to test_samba_dnsupdate_no_change 2024-07-17 07:48:31 +00:00
dcerpc tests/dcerpc/raw_protocol: test invalid schannel binds 2024-10-10 14:01:04 +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: Fix code spelling 2024-08-04 00:32:39 +00:00
krb5 python:tests/krb5: add netlogon.py 2024-12-05 16:46:38 +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 pytest: s/the the\b/the/ in comments 2024-11-06 10:57:35 +00:00
__init__.py pytest: simplify and fix HEXDUMP_FILTER used in hexdumps 2024-06-12 08:14:34 +00:00
audit_log_base.py pytest:audit_log_base: use string_is_guid() 2024-02-29 04:01:40 +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 pytest:auth_log_base: use string_is_guid() 2024-02-29 04:01:40 +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: Fail the test if we don’t receive an NTSTATUSError 2024-02-27 01:11:37 +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 pytest: remove py2 str/bytes workaround in auth_log_samlogon 2024-06-12 08:14:34 +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 selftest: aces: fix mutable default args in assemble_ace 2024-03-01 04:45:36 +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: remove string_to_byte_array() 2024-06-12 09:16:39 +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: make test_export_keytab_nochange_update() more reliable 2024-07-17 14:21:30 +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 pytest: remove py2 str/bytes workaround in dns_base 2024-06-12 08:14:34 +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/dns_tkey: add test_update_tsig_record_access_denied() 2024-06-06 02:13:33 +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 docs-xml: Add smb.conf option 'dns hostname' 2024-05-22 20:33:36 +00:00
domain_backup_offline.py selftest: Ignore msKds-DomainID in ldapcmp_restoredc.sh and samba.tests.domain_backup_offline 2024-03-01 00:19:45 +00:00
domain_backup.py python:tests: Account for new user ‘joe’ 2024-08-04 00:32:39 +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_quiet_env_tests.py selftest: Move some KDS root key tests around to prepare for gMSA server side 2024-04-16 03:58:31 +00:00
dsdb_quiet_provision_tests.py selftest: Add test that msDS-ExpirePasswordsOnSmartCardOnlyAccounts=TRUE is set 2024-06-10 04:27:31 +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: Fix code spelling 2024-08-04 00:32:39 +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 pytest: s/the the\b/the/ in comments 2024-11-06 10:57:35 +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/dns_base: maintain a dict with tkey related state 2024-06-06 02:13:33 +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 tests: move wire_mode_to_unix() to libsmb.py 2024-11-27 18:22:28 +00:00
loadparm.py
logfiles.py ldap_server: Add a ldapsrv debug class to log LDAP queries 2024-07-09 08:37:22 +00:00
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 pytest/netcmd: fix for new samba-tool api 2022-09-08 22:34:36 +00:00
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 tests/ntacls: unblock failing gitlab pipelines because test_setntacl_forcenative 2024-05-10 00:26:35 +00:00
ntlm_auth_base.py tests/ntlm_auth_krb5: don't test that a krb5ccache work with an explicit username 2024-05-14 10:18:31 +00:00
ntlm_auth_krb5.py tests/ntlm_auth_krb5: don't test that a krb5ccache work with an explicit username 2024-05-14 10:18:31 +00:00
ntlm_auth.py tests/ntlm_auth: Do not set a client_password 2024-05-14 10:18:31 +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 pytest: remove py2 str/bytes workaround in py_credentials 2024-06-12 08:14:34 +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 tests: test POSIX file type on reparse point 2024-11-27 18:22:29 +00:00
rust.py Add pyglue for Rust for disabling tests 2024-10-23 14:21:34 +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 s3:passdb: don't clear the LM HASH without a password change 2024-07-17 10:12:36 +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 libcli:security: allow spaces after BAD: 2024-07-25 06:27:26 +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 tests/segfault.py: make sure samdb.connect(url) has a valid lp_ctx 2024-04-23 23:50:33 +00:00
sid_strings.py pytest: sid_strings: Samba DN object refuses sub-auth overflow 2024-05-07 23:25:35 +00:00
smb1posix.py python: Remove unused imports 2023-08-30 02:15:29 +00:00
smb2symlink.py tests: Check symlinks are readable as reparse points 2024-11-22 11:05:32 +00:00
smb3unix.py tests: move wire_mode_to_unix() to libsmb.py 2024-11-27 18:22:28 +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:smb tests: remove py2 compatibility code 2024-05-31 00:25:33 +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 tests: Improve the error message for bad format chars 2024-09-10 21:54:36 +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 python: tests: type check should always use "is" or "is not" 2024-04-08 03:00:39 +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 Fix usage test broken by rust vendor sources 2024-10-23 14:21:34 +00:00
xattr.py python:samba:tests: Fix code spelling 2023-06-23 13:44:31 +00:00