mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
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
This commit is contained in:
parent
d17a6f0493
commit
a68f4476f7
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user