diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-03-09 10:55:17 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-03-09 10:55:17 +0100 |
commit | b05bdc2712e5f3e0dd1df73f7675462012538a3e (patch) | |
tree | d76971cbfd67b2833693d2c985bdb74c0f882704 /examples | |
parent | Document changes and release 2.91.90-1 (diff) | |
parent | New upstream version 2.91.91 (diff) | |
download | krb5-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')
-rw-r--r-- | examples/Makefile.am | 2 | ||||
-rw-r--r-- | examples/Makefile.in | 4 | ||||
-rw-r--r-- | examples/destroy-ccache.py | 8 | ||||
-rw-r--r-- | examples/tgt-acquire.py | 8 |
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." |