aboutsummaryrefslogtreecommitdiff
path: root/examples/tgt-acquire.py
blob: cc8dc28d00fa8622b6eff94efa0b3a295839476c (plain)
1
2
3
4
5
6
7
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