I should mention that the krb5_locate_kdc() function is one that has undergone a major re-write between 1.2.7 and 1.3.1. Any findings that the error is in krb5_locate_kdc() can only be responded to with a request that you upgrade to the current release of the distribution. Jeffrey Altman