From e173c063207680d3aff2fd75c7a7ca9b0dde2600 Mon Sep 17 00:00:00 2001 From: Ayitaka <22988712+Ayitaka@users.noreply.github.com> Date: Wed, 29 Nov 2023 04:07:21 -0800 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 2a7bde5..4e7d0be 100644 --- a/src/licenseGen/Program.cs +++ b/src/licenseGen/Program.cs @@ -416,7 +416,7 @@ namespace bitwardenSelfLicensor set("Enabled", true); set("Plan", "Custom"); set("PlanType", Enum.Parse(planTypeEnum, "Custom")); - set("Seats", (int)short.MaxValue); + set("Seats", int.MaxValue); set("MaxCollections", short.MaxValue); set("UsePolicies", true); set("UseSso", true); @@ -433,7 +433,11 @@ namespace bitwardenSelfLicensor set("MaxStorageGb", storage == 0 ? short.MaxValue : storage); set("SelfHost", true); set("UsersGetPremium", true); - set("Version", 10); + set("UsePasswordManager", true); + set("UseSecretsManager", true); + set("SmSeats", int.MaxValue); + set("SmServiceAccounts", int.MaxValue); + set("Version", 12); set("Issued", DateTime.UtcNow); set("Refresh", DateTime.UtcNow.AddYears(100).AddMonths(-1)); set("Expires", DateTime.UtcNow.AddYears(100));