Heimdal is an implementation of Kerberos 5, largely written in Sweden (due to crypto export legal issues in the US at the time). It is freely available under a three clause BSD style license.