KDC: Allow hdb to set the issued ticket's realm
This is used by Samba to set the canonical realm in
case netbios realm was requested (same as Windows).
Regression introduced by upstream commit:
378f34b4be
Signed-off-by: Isaac Boukris <iboukris@gmail.com>
This commit is contained in:

committed by
Nico Williams

parent
434f76bcb7
commit
c555ed6a1f
@@ -807,7 +807,7 @@ tgs_make_reply(krb5_context context,
|
|||||||
if(ret)
|
if(ret)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
ret = copy_Realm(&server_principal->realm, &rep.ticket.realm);
|
ret = copy_Realm(&server->entry.principal->realm, &rep.ticket.realm);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto out;
|
goto out;
|
||||||
_krb5_principal2principalname(&rep.ticket.sname, server_principal);
|
_krb5_principal2principalname(&rep.ticket.sname, server_principal);
|
||||||
|
Reference in New Issue
Block a user