heimdal use returned server entry from HDB to compare realms

Some hdb modules (samba4) may change the case of the realm in
a returned result.  Use that to determine if it matches the krbtgt
realm also returned from the DB (the DB will return it in the 'right' case)

Andrew Bartlett

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:
Andrew Bartlett
2010-10-01 13:58:36 +10:00
committed by Love Hornquist Astrand
parent 0225db7152
commit b78419f126

View File

@@ -1694,7 +1694,7 @@ server_lookup:
* backward.
*/
if (strcmp(krb5_principal_get_realm(context, sp),
if (strcmp(krb5_principal_get_realm(context, server->entry.principal),
krb5_principal_get_comp_string(context,
krbtgt->entry.principal,
1)) != 0) {