We're not using kinit. We're basically writing our own progams built on the Kerberos libraries. However, I've looked at the source code to kinit when I was learning how to use the MIT libraries, and it would not be hard to modify.