aboutsummaryrefslogtreecommitdiff
path: root/examples/destroy-ccache.py
blob: 33cb20caa7ce6db359ef4b44bba67cf5a6851b1d (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.destroyCCache(dbus_interface='org.gnome.KrbAuthDialog')
if not ret:
    print >>sys.stderr, "Could not destroy credentials cache"
bgstack15