Skip to content

Commit f38e1bb

Browse files
committed
Remove unnecessary ClientRealm field from context
1 parent 7985632 commit f38e1bb

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

Kerberos.NET/Server/KdcTgsReqMessageHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public override ReadOnlyMemory<byte> ExecuteCore(PreAuthenticationContext contex
271271
EncryptedPartEType = context.EncryptedPartEType,
272272
ServicePrincipal = context.ServicePrincipal,
273273
ServicePrincipalKey = serviceKey,
274-
ClientRealmName = context.ClientRealm,
274+
ClientRealmName = context.Ticket.CRealm,
275275
RealmName = tgsReq.Body.Realm,
276276
Addresses = tgsReq.Body.Addresses,
277277
RenewTill = context.Ticket.RenewTill,

Kerberos.NET/Server/PaDataTgsTicketHandler.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ public override KrbPaData Validate(KrbKdcReq asReq, PreAuthenticationContext con
105105

106106
context.EncryptedPartKey = state.DecryptedApReq.SessionKey;
107107
context.Ticket = state.DecryptedApReq.Ticket;
108-
context.ClientRealm = state.DecryptedApReq.Ticket.CRealm;
109108

110109
return null;
111110
}

Kerberos.NET/Server/PreAuthenticationContext.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ public class PreAuthenticationContext
3232
/// </summary>
3333
public KerberosKey EvidenceTicketKey { get; set; }
3434

35-
/// <summary>
36-
/// The name of the realm that the client issued a TGT from.
37-
/// </summary>
38-
public string ClientRealm { get; set; }
39-
4035
/// <summary>
4136
/// The identity that will be the subject of the issued ticket.
4237
/// </summary>

0 commit comments

Comments
 (0)