The simple DBus interface has finally landed in GNOME's SVN. This
allows your application to acquire a Kerberos Ticket Granting Ticket via a
simple DBus call to krb5-auth-dialog:
dbus-send --print-reply --type=method_call \
If there's a valid TGT already available the call will simply return, otherwise
it'll spawn the dialog to prompt for the password.
There are patches for offlineimap and virt-manager to use this
interface and a new krb5-auth-dialog has already been uploaded to
Debian's unstable distribution.