diff options
| author | Gary Lockyer <gary@catalyst.net.nz> | 2020-12-10 10:15:28 +1300 |
|---|---|---|
| committer | Andrew Bartlett <abartlet@samba.org> | 2020-12-16 23:48:05 +0000 |
| commit | d74c9dcf3aaa613abfac49288f427484468bf6e1 (patch) | |
| tree | fa5c36cb2d4748fdf7c5ad272e654e482c76467f /python | |
| parent | 93c576dae4a2179a253dea4e8969ac435718bda5 (diff) | |
| download | samba-d74c9dcf3aaa613abfac49288f427484468bf6e1.tar.gz samba-d74c9dcf3aaa613abfac49288f427484468bf6e1.tar.bz2 samba-d74c9dcf3aaa613abfac49288f427484468bf6e1.zip | |
tests python krb5: Add Authorization data ad-type constants
Add constants for the Authorization Data Type values.
RFC 4120 7.5.4. Authorization Data Types
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
| -rw-r--r-- | python/samba/tests/krb5/rfc4120_constants.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/python/samba/tests/krb5/rfc4120_constants.py b/python/samba/tests/krb5/rfc4120_constants.py index e939bb75e82..e1d0c5baa68 100644 --- a/python/samba/tests/krb5/rfc4120_constants.py +++ b/python/samba/tests/krb5/rfc4120_constants.py @@ -47,3 +47,17 @@ NT_PRINCIPAL = int(krb5_asn1.NameTypeValues('kRB5-NT-PRINCIPAL')) NT_SRV_INST = int(krb5_asn1.NameTypeValues('kRB5-NT-SRV-INST')) NT_ENTERPRISE_PRINCIPAL = int(krb5_asn1.NameTypeValues( 'kRB5-NT-ENTERPRISE-PRINCIPAL')) + +# Authorization data ad-type values + +AD_IF_RELEVANT = 1 +AD_INTENDED_FOR_SERVER = 2 +AD_INTENDED_FOR_APPLICATION_CLASS = 3 +AD_KDC_ISSUED = 4 +AD_AND_OR = 5 +AD_MANDATORY_TICKET_EXTENSIONS = 6 +AD_IN_TICKET_EXTENSIONS = 7 +AD_MANDATORY_FOR_KDC = 8 +AD_INITIAL_VERIFIED_CAS = 9 +AD_WIN2K_PAC = 128 +AD_SIGNTICKET = 512 |
