mirror of
https://github.com/jakeswenson/BitBetter.git
synced 2025-05-24 06:23:27 +00:00
Co-authored-by: captainhook <16797541+captainhook@users.noreply.github.com>
This commit is contained in:
parent
f75731633c
commit
b47fe37279
|
@ -430,13 +430,14 @@ internal class Program
|
||||||
Set("UseSecretsManager", true);
|
Set("UseSecretsManager", true);
|
||||||
Set("SmSeats", Int32.MaxValue);
|
Set("SmSeats", Int32.MaxValue);
|
||||||
Set("SmServiceAccounts", Int32.MaxValue);
|
Set("SmServiceAccounts", Int32.MaxValue);
|
||||||
Set("Version", 14); //This is set to 14 to use LimitCollectionCreationDeletion can be changed to 13 to just use Secrets Manager
|
Set("Version", 15); //This is set to 15 to use AllowAdminAccessToAllCollectionItems can be changed to 13 to just use Secrets Manager
|
||||||
Set("Issued", DateTime.UtcNow);
|
Set("Issued", DateTime.UtcNow);
|
||||||
Set("Refresh", DateTime.UtcNow.AddYears(100).AddMonths(-1));
|
Set("Refresh", DateTime.UtcNow.AddYears(100).AddMonths(-1));
|
||||||
Set("Expires", DateTime.UtcNow.AddYears(100));
|
Set("Expires", DateTime.UtcNow.AddYears(100));
|
||||||
Set("Trial", false);
|
Set("Trial", false);
|
||||||
Set("LicenseType", Enum.Parse(licenseTypeEnum, "Organization"));
|
Set("LicenseType", Enum.Parse(licenseTypeEnum, "Organization"));
|
||||||
Set("LimitCollectionCreationDeletion", true); //This will be used in the new version of BitWarden but can be applied now
|
Set("LimitCollectionCreationDeletion", true); //This will be used in the new version of BitWarden but can be applied now
|
||||||
|
Set("AllowAdminAccessToAllCollectionItems", true);
|
||||||
|
|
||||||
Set("Hash", Convert.ToBase64String((Byte[])type.GetMethod("ComputeHash").Invoke(license, [])));
|
Set("Hash", Convert.ToBase64String((Byte[])type.GetMethod("ComputeHash").Invoke(license, [])));
|
||||||
Set("Signature", Convert.ToBase64String((Byte[])type.GetMethod("Sign").Invoke(license, [cert])));
|
Set("Signature", Convert.ToBase64String((Byte[])type.GetMethod("Sign").Invoke(license, [cert])));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user