aboutsummaryrefslogtreecommitdiff
path: root/examples/destroy-ccache.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-03-09 10:55:17 +0100
committerGuido Günther <agx@sigxcpu.org>2011-03-09 10:55:17 +0100
commitb05bdc2712e5f3e0dd1df73f7675462012538a3e (patch)
treed76971cbfd67b2833693d2c985bdb74c0f882704 /examples/destroy-ccache.py
parentDocument changes and release 2.91.90-1 (diff)
parentNew upstream version 2.91.91 (diff)
downloadkrb5-auth-dialog-b05bdc2712e5f3e0dd1df73f7675462012538a3e.tar.gz
krb5-auth-dialog-b05bdc2712e5f3e0dd1df73f7675462012538a3e.tar.bz2
krb5-auth-dialog-b05bdc2712e5f3e0dd1df73f7675462012538a3e.zip
Merge commit 'upstream/2.91.91'
Diffstat (limited to 'examples/destroy-ccache.py')
-rw-r--r--examples/destroy-ccache.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/destroy-ccache.py b/examples/destroy-ccache.py
new file mode 100644
index 0000000..33cb20c
--- /dev/null
+++ b/examples/destroy-ccache.py
@@ -0,0 +1,8 @@
+import dbus
+
+bus = dbus.SessionBus()
+ka = bus.get_object('org.gnome.KrbAuthDialog',
+ '/org/gnome/KrbAuthDialog')
+ret = ka.destroyCCache(dbus_interface='org.gnome.KrbAuthDialog')
+if not ret:
+ print >>sys.stderr, "Could not destroy credentials cache"
bgstack15