From 10d8a860db5734067c2a7f0326a2f09cf9168fc1 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 16 Jun 2005 22:45:30 +0000 Subject: r7651: Only convert SERVER requests to KRBTGT requests. Andrew Bartlett (This used to be commit a948e743bbc691798e6a956b35d8e09cfc91f988) --- source4/kdc/hdb-ldb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/kdc/hdb-ldb.c b/source4/kdc/hdb-ldb.c index c8078c5b1e..b751ff33c0 100644 --- a/source4/kdc/hdb-ldb.c +++ b/source4/kdc/hdb-ldb.c @@ -736,7 +736,7 @@ static krb5_error_code LDB_fetch(krb5_context context, HDB *db, unsigned flags, /* Cludge, cludge cludge. If the realm part of krbtgt/realm, * is in our db, then direct the caller at our primary * krgtgt */ - if (ent_type != HDB_ENT_TYPE_KRBTGT + if (ent_type == HDB_ENT_TYPE_SERVER && principal->name.name_string.len == 2 && (strcmp(principal->name.name_string.val[0], KRB5_TGS_NAME) == 0) && (LDB_lookup_realm(context, (struct ldb_context *)db->hdb_db, -- cgit