Skip to content

Commit 254ac08

Browse files
authored
Lower the Kerberos principal expiration time (#73515)
KRB5/GSSAPI on Arm32 is unable to handle dates far in the future
1 parent bf17dd6 commit 254ac08

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/libraries/Common/tests/System/Net/Security/Kerberos/FakeKerberosPrincipal.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public FakeKerberosPrincipal(PrincipalType type, string principalName, string re
1919
this.Type = type;
2020
this.PrincipalName = principalName;
2121
this.Realm = realm;
22-
this.Expires = DateTimeOffset.UtcNow.AddMonths(9999);
22+
this.Expires = DateTimeOffset.UtcNow.AddMonths(1);
2323
this._password = password;
2424
}
2525

src/libraries/Common/tests/System/Net/Security/Kerberos/KerberosExecutor.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ public class KerberosExecutor : IDisposable
2929
private readonly ITestOutputHelper _testOutputHelper;
3030

3131
public static bool IsSupported { get; } =
32-
RemoteExecutor.IsSupported && (OperatingSystem.IsLinux() || OperatingSystem.IsMacOS()) &&
33-
// ARM32 is cursed (https://github.com/dotnet/runtime/issues/73343)
34-
!PlatformDetection.IsArmProcess;
32+
RemoteExecutor.IsSupported && (OperatingSystem.IsLinux() || OperatingSystem.IsMacOS());
3533
public const string DefaultAdminPassword = "PLACEHOLDERadmin.";
3634

3735
public const string DefaultUserPassword = "PLACEHOLDERcorrect20";

0 commit comments

Comments
 (0)