From a15719c71069186c8885b3fe2dfba170484376b4 Mon Sep 17 00:00:00 2001 From: Michiel Hazelhof Date: Thu, 30 Nov 2023 11:21:15 +0100 Subject: [PATCH] Updated license version to 12, added SM options, increased max seats (short to int) (#172) * - Updated license version to 12 - Added new SM license options * Change seats, smseats, smserviceaccounts from short to int, like they are in the Bitwarden server code, to allow for the accurate maximum amount of seats --- src/licenseGen/Program.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/licenseGen/Program.cs b/src/licenseGen/Program.cs index a248371..ee86619 100644 --- a/src/licenseGen/Program.cs +++ b/src/licenseGen/Program.cs @@ -414,7 +414,7 @@ internal class Program set("Enabled", true); set("Plan", "Custom"); set("PlanType", Enum.Parse(planTypeEnum, "Custom")); - set("Seats", (Int32)Int16.MaxValue); + set("Seats", Int32.MaxValue); set("MaxCollections", Int16.MaxValue); set("UsePolicies", true); set("UseSso", true); @@ -431,7 +431,11 @@ internal class Program set("MaxStorageGb", storage == 0 ? Int16.MaxValue : storage); set("SelfHost", true); set("UsersGetPremium", true); - set("Version", 10); + set("UsePasswordManager", true); + set("UseSecretsManager", true); + set("SmSeats", Int32.MaxValue); + set("SmServiceAccounts", Int32.MaxValue); + set("Version", 12); set("Issued", DateTime.UtcNow); set("Refresh", DateTime.UtcNow.AddYears(100).AddMonths(-1)); set("Expires", DateTime.UtcNow.AddYears(100));