aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile.am2
-rw-r--r--examples/Makefile.in4
-rw-r--r--examples/destroy-ccache.py8
-rw-r--r--examples/tgt-acquire.py8
4 files changed, 20 insertions, 2 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am
index c0d930a..529f035 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -2,4 +2,6 @@ NULL =
EXTRA_DIST = \
tgt-signals.py \
+ tgt-acquire.py \
+ destroy-ccache.py \
$(NULL)
diff --git a/examples/Makefile.in b/examples/Makefile.in
index 27aa765..2c08d72 100644
--- a/examples/Makefile.in
+++ b/examples/Makefile.in
@@ -75,8 +75,6 @@ CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CYGPATH_W = @CYGPATH_W@
DATADIRNAME = @DATADIRNAME@
-DBUS_CFLAGS = @DBUS_CFLAGS@
-DBUS_LIBS = @DBUS_LIBS@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@
@@ -238,6 +236,8 @@ top_srcdir = @top_srcdir@
NULL =
EXTRA_DIST = \
tgt-signals.py \
+ tgt-acquire.py \
+ destroy-ccache.py \
$(NULL)
all: all-am
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"
diff --git a/examples/tgt-acquire.py b/examples/tgt-acquire.py
new file mode 100644
index 0000000..cc8dc28
--- /dev/null
+++ b/examples/tgt-acquire.py
@@ -0,0 +1,8 @@
+import dbus
+
+bus = dbus.SessionBus()
+ka = bus.get_object('org.gnome.KrbAuthDialog',
+ '/org/gnome/KrbAuthDialog')
+ret = ka.acquireTgt("", dbus_interface='org.gnome.KrbAuthDialog')
+if not ret:
+ print >>sys.stderr, "Cannot acuire TGT, aborting."
bgstack15