summaryrefslogtreecommitdiff
path: root/source4/heimdal
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-10-01 13:58:36 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-10-02 09:11:37 +1000
commita68f4476f780df4a87a99371b49c5e38b0fcb4d7 (patch)
tree541a511fd63a05ce1f9117a0c65a05172262051c /source4/heimdal
parentd17a6f049386ebb8c1418837802dac069d7866e4 (diff)
downloadsamba-a68f4476f780df4a87a99371b49c5e38b0fcb4d7.tar.gz
samba-a68f4476f780df4a87a99371b49c5e38b0fcb4d7.tar.bz2
samba-a68f4476f780df4a87a99371b49c5e38b0fcb4d7.zip
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
Diffstat (limited to 'source4/heimdal')
-rw-r--r--source4/heimdal/kdc/krb5tgs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/heimdal/kdc/krb5tgs.c b/source4/heimdal/kdc/krb5tgs.c
index 3560a0df66..06a535d4d4 100644
--- a/source4/heimdal/kdc/krb5tgs.c
+++ b/source4/heimdal/kdc/krb5tgs.c
@@ -1689,7 +1689,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) {