auth/credentials/pycredentials.c | 8 +- lib/talloc/pytalloc.c | 4 +- libgpo/pygpo.c | 2 +- librpc/idl/krb5ccache.idl | 115 + librpc/idl/wscript_build | 1 + librpc/wscript_build | 8 +- python/samba/netcmd/user.py | 10 +- python/samba/samdb.py | 15 + python/samba/tests/blackbox/ndrdump.py | 45 +- .../samba/tests/krb5/as_canonicalization_tests.py | 434 ++++ python/samba/tests/krb5/as_req_tests.py | 218 ++ python/samba/tests/krb5/compatability_tests.py | 227 ++ python/samba/tests/krb5/fast_tests.py | 1691 +++++++++++++ python/samba/tests/krb5/kcrypto.py | 79 +- python/samba/tests/krb5/kdc_base_test.py | 913 +++++++ python/samba/tests/krb5/kdc_tests.py | 228 ++ python/samba/tests/krb5/kdc_tgs_tests.py | 213 ++ .../krb5/ms_kile_client_principal_lookup_tests.py | 829 +++++++ .../{rfc4120_pyasn1_regen.sh => pyasn1_regen.sh} | 0 python/samba/tests/krb5/raw_testcase.py | 2511 +++++++++++++++++--- python/samba/tests/krb5/rfc4120.asn1 | 187 +- python/samba/tests/krb5/rfc4120_constants.py | 171 ++ python/samba/tests/krb5/rfc4120_pyasn1.py | 241 +- python/samba/tests/krb5/s4u_tests.py | 38 +- python/samba/tests/krb5/simple_tests.py | 49 +- python/samba/tests/krb5/test_ccache.py | 135 ++ python/samba/tests/krb5/test_ldap.py | 96 + python/samba/tests/krb5/test_rpc.py | 79 + python/samba/tests/krb5/test_smb.py | 110 + python/samba/tests/krb5/xrealm_tests.py | 45 +- python/samba/tests/samdb.py | 13 +- python/samba/tests/usage.py | 13 + selftest/knownfail | 6 +- selftest/knownfail.d/kdc-enterprise | 63 + selftest/knownfail_heimdal_kdc | 123 + selftest/knownfail_mit_kdc | 322 +++ selftest/selftesthelpers.py | 58 +- selftest/target/Samba4.pm | 2 +- selftest/tests.py | 1 + selftest/wscript | 5 + source3/libsmb/clifsinfo.c | 44 +- source3/libsmb/pylibsmb.c | 138 +- source3/passdb/py_passdb.c | 4 - source3/selftest/ktest-krb5_ccache-2.txt | 1574 ++++++++++++ source3/selftest/ktest-krb5_ccache-3.txt | 832 +++++++ source4/auth/gensec/gensec_gssapi.c | 4 + source4/auth/gensec/pygensec.c | 71 +- source4/heimdal/kdc/kerberos5.c | 4 +- source4/heimdal/kdc/krb5tgs.c | 4 + source4/librpc/ndr/py_security.c | 37 + source4/librpc/wscript_build | 7 + source4/ntvfs/posix/python/pyposix_eadb.c | 2 +- source4/ntvfs/posix/python/pyxattr_native.c | 4 +- source4/ntvfs/posix/python/pyxattr_tdb.c | 2 +- source4/selftest/tests.py | 57 + source4/torture/krb5/kdc-heimdal.c | 104 +- 56 files changed, 11725 insertions(+), 471 deletions(-)