diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-03-09 10:55:05 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-03-09 10:55:05 +0100 |
commit | ca71a0f06e24fd58a18b76c9df01c85642f63bdb (patch) | |
tree | 8e661a1e15479d8b1eaa48691b566d3ef9859c5e /examples/tgt-acquire.py | |
parent | New upstream version 2.91.90 (diff) | |
download | krb5-auth-dialog-ca71a0f06e24fd58a18b76c9df01c85642f63bdb.tar.gz krb5-auth-dialog-ca71a0f06e24fd58a18b76c9df01c85642f63bdb.tar.bz2 krb5-auth-dialog-ca71a0f06e24fd58a18b76c9df01c85642f63bdb.zip |
New upstream version 2.91.91
Diffstat (limited to 'examples/tgt-acquire.py')
-rw-r--r-- | examples/tgt-acquire.py | 8 |
1 files changed, 8 insertions, 0 deletions
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." |