Refined a little bit of KDC side codes
Supporting multiple kdc realms