summaryrefslogtreecommitdiff
path: root/python/samba
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2025-02-18 12:13:26 +0100
committerRalph Boehme <slow@samba.org>2025-02-24 09:27:37 +0000
commit5ab87a840fcbb15b95503bf89dda9148ea3d7efc (patch)
tree4b10a628183074e146f7160d1d7364e1e9de39c4 /python/samba
parent559bcd0c33d25973e0155b5a34811db6ea632a99 (diff)
downloadsamba-5ab87a840fcbb15b95503bf89dda9148ea3d7efc.tar.gz
samba-5ab87a840fcbb15b95503bf89dda9148ea3d7efc.tar.bz2
samba-5ab87a840fcbb15b95503bf89dda9148ea3d7efc.zip
python:tests/krb5: give KerberosTicketCreds a basic __str__() function
This makes debugging easier... Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'python/samba')
-rw-r--r--python/samba/tests/krb5/raw_testcase.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/samba/tests/krb5/raw_testcase.py b/python/samba/tests/krb5/raw_testcase.py
index 132517e5331..0c722711205 100644
--- a/python/samba/tests/krb5/raw_testcase.py
+++ b/python/samba/tests/krb5/raw_testcase.py
@@ -705,6 +705,10 @@ class KerberosTicketCreds:
self.ticket['realm'] = srealm
self.srealm = srealm
+ def __str__(self):
+ return "KerberosTicketCreds(crealm=%s, cname=%s, srealm=%s, sname=%s)" %(
+ self.crealm, self.cname, self.srealm, self.sname)
+
class PkInit(Enum):
NOT_USED = object()
PUBLIC_KEY = object()