You might get something out of: http://k5wiki.kerberos.org/wiki/Projects/VerifyAuthData although it's not exactly written from a plugin author's perspective.