diff --git a/lib/krb5/krbhst.c b/lib/krb5/krbhst.c index 330c5433e..cf2948994 100644 --- a/lib/krb5/krbhst.c +++ b/lib/krb5/krbhst.c @@ -550,6 +550,12 @@ kpasswd_get_next(krb5_context context, if(get_next(kd, host)) return 0; } + if((kd->flags & KD_SRV_TCP) == 0) { + srv_get_hosts(context, kd, "tcp", "kpasswd"); + kd->flags |= KD_SRV_TCP; + if(get_next(kd, host)) + return 0; + } } /* no matches -> try admin */