Hi, It seems to me one can set up some plugin to tell which kdc host to connect at runtime. However the code is not clear to me. KD_PLUGIN is defined in krbhst.c only. Don't see how this flag can be set for a context. I couldn't find any reference code. Does anyone have some insight or example? Thanks a lot. Fred