mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r7651: Only convert SERVER requests to KRBTGT requests.
Andrew Bartlett
(This used to be commit a948e743bb
)
This commit is contained in:
parent
ffa3632188
commit
10d8a860db
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user