Skip to content

Commit 2d9ab43

Browse files
authored
PingCastle 3.3.0.1 (#262)
1 parent df54c41 commit 2d9ab43

10 files changed

+17
-9
lines changed

Healthcheck/HealthcheckAnalyzer.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,9 @@ private void GenerateComputerData(ADDomainInfo domainInfo, ADWebService adws)
900900
if (!string.IsNullOrEmpty(x.OperatingSystemVersion) && x.OperatingSystem != null && x.OperatingSystem.Contains("Windows"))
901901
{
902902
string key = (x.OperatingSystem.Contains("Server") ? "s" : "w") + "|" + x.OperatingSystemVersion;
903+
var isLTSC = x.OperatingSystem.Contains("LTSC") || x.OperatingSystem.Contains("LTSB");
904+
if (isLTSC)
905+
key += "|LTSC";
903906
if (!operatingSystemVersion.ContainsKey(key))
904907
{
905908
operatingSystemVersion[key] = new HealthcheckOSVersionData(x);

Healthcheck/Rules/HeatlcheckRuleAnomalyAdminSDHolder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public class HeatlcheckRuleAnomalyAdminSDHolder : RuleBase<HealthcheckData>
3232
{
3333
AddRawDetail(healthcheckData.AdminSDHolderNotOK[i].DistinguishedName);
3434
}
35+
return null;
3536
}
36-
return null;
3737
}
3838
return healthcheckData.AdminSDHolderNotOKCount;
3939
}

Healthcheck/Rules/HeatlcheckRuleStaledDesEnabled.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ public class HeatlcheckRuleStaledDesEnabled : RuleBase<HealthcheckData>
3838
}
3939
}
4040
}
41-
return null;
4241
}
42+
43+
if (healthcheckData.UserAccountData.NumberDesEnabled + healthcheckData.ComputerAccountData.NumberDesEnabled < maxNumDisplayAccount)
44+
return null;
4345
return healthcheckData.UserAccountData.NumberDesEnabled + healthcheckData.ComputerAccountData.NumberDesEnabled;
4446
}
4547
}

Healthcheck/Rules/HeatlcheckRuleStaledPrimaryGroup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public class HeatlcheckRuleStaledPrimaryGroup : RuleBase<HealthcheckData>
2424
{
2525
AddRawDetail(healthcheckData.UserAccountData.ListBadPrimaryGroup[i].DistinguishedName);
2626
}
27+
return null;
2728
}
28-
return null;
2929
}
3030
return healthcheckData.UserAccountData.NumberBadPrimaryGroup;
3131
}

Healthcheck/Rules/HeatlcheckRuleStaledPwdNeverExpires.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public class HeatlcheckRuleStaledPwdNeverExpires : RuleBase<HealthcheckData>
2525
{
2626
AddRawDetail(healthcheckData.UserAccountData.ListPwdNeverExpires[i].DistinguishedName);
2727
}
28+
return null;
2829
}
29-
return null;
3030
}
3131
return healthcheckData.UserAccountData.NumberPwdNeverExpires;
3232
}

Healthcheck/Rules/HeatlcheckRuleStaledPwdNotRequired.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public class HeatlcheckRuleStaledPwdNotRequired : RuleBase<HealthcheckData>
2525
{
2626
AddRawDetail(healthcheckData.UserAccountData.ListPwdNotRequired[i].DistinguishedName);
2727
}
28+
return null;
2829
}
29-
return null;
3030
}
3131
return healthcheckData.UserAccountData.NumberPwdNotRequired;
3232
}

Healthcheck/Rules/RuleDescription.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
<value>The purpose is to make sure that there is a proper password policy in place for the native local administrator account.</value>
177177
</data>
178178
<data name="A_LAPS_Not_Installed_Solution" xml:space="preserve">
179-
<value>If you don't have any provisioning process or password solution to manage local administrators, you should install the LAPS solution. If you mitigate the risk differently, you should add this rule as an exception, as the risk is covered.</value>
179+
<value>If you don't have any provisioning process or password solution to manage local administrators, you should install the LAPS solution. If you address the risk through alternative measures, you can disregard this finding. Customers using Netwrix PingCastle Pro or Enterprise versions can add this item as an exception.</value>
180180
</data>
181181
<data name="A_LAPS_Not_Installed_Rationale" xml:space="preserve">
182182
<value>LAPS doesn't seem to be installed</value>

Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ private void Run(string[] args)
219219
ConsoleMenu.Header = @" \==--O___ PingCastle (Version " + version.ToString(4) + @" " + ConsoleMenu.GetBuildDateTime(Assembly.GetExecutingAssembly()) + @")
220220
\ / \ ¨¨> Get Active Directory Security at 80% in 20% of the time
221221
\/ \ ,’ " + (license.EndTime < DateTime.MaxValue ? "End of support: " + license.EndTime.ToString("yyyy-MM-dd") : "") + @"
222-
O¨---O To find out more about PingCastle, visit https://www.pingcastle.com
222+
O¨---O To find out more about PingCastle, visit https://www.pingcastle.com
223223
\ ,' For online documentation, visit https://helpcenter.netwrix.com/category/pingcastle
224224
v For support and questions:
225225
- Open-source community, visit https://github.com/netwrix/pingcastle/issues

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@
2828
// Numéro de build
2929
// Révision
3030
//
31-
[assembly: AssemblyVersion("3.3.0.0")]
32-
[assembly: AssemblyFileVersion("3.3.0.0")]
31+
[assembly: AssemblyVersion("3.3.0.1")]
32+
[assembly: AssemblyFileVersion("3.3.0.1")]

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
3.3.0.1
2+
* fix an issue where rule is not displayed when impacted users/computers count is less than 100.
3+
14
3.3.0.0
25
* adjusted the rules S-DesEnabled, S-PwdNotRequired, S-PwdNeverExpires, P-Delegated, A-PreWin2000Other, S-PrimaryGroup, P-ServiceDomainAdmin,
36
A-AdminSDHolder to display directly the list of impacted users in the rule if the number is limited (hardcoded to 100) so Pro / Enterprise users can set accounts in exceptions

0 commit comments

Comments
 (0)