Applied the changes I have made on the kerberos code to a branch, in order to share this work with others. Be aware that it's not compiling yet...