File: destroy-ccache.py

package info (click to toggle)
krb5-auth-dialog 3.2.1-1%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,872 kB
  • sloc: sh: 11,320; ansic: 4,639; xml: 1,568; makefile: 292; lex: 159; python: 58; yacc: 42
file content (8 lines) | stat: -rw-r--r-- 271 bytes parent folder | download | duplicates (5)
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"