The realm must be in uppercase or you will get a “ Cannot find KDC for requested realm while getting initial credentials ” error (Kerberos is case-sensitive!).