From ca71a0f06e24fd58a18b76c9df01c85642f63bdb Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Wed, 9 Mar 2011 10:55:05 +0100 Subject: New upstream version 2.91.91 --- examples/Makefile.am | 2 ++ examples/Makefile.in | 4 ++-- examples/destroy-ccache.py | 8 ++++++++ examples/tgt-acquire.py | 8 ++++++++ 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 examples/destroy-ccache.py create mode 100644 examples/tgt-acquire.py (limited to 'examples') 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." -- cgit