Don't display observation window and lockout duration if lockout threshhold is 0, as they are disabled then

main
Alexander Neff 2024-03-16 19:13:11 +01:00
parent 4d6d3bf766
commit b192c036cb
1 changed files with 2 additions and 2 deletions

View File

@ -97,8 +97,8 @@ class NXCModule:
context.log.highlight("Minimum Password Length: " + str(passwordLength))
context.log.highlight("Minimum Password History Length: " + str(passwordhistorylength))
context.log.highlight("Lockout Threshold: " + str(lockoutThreshold))
context.log.highlight("Observation Window: " + mins(obersationWindow))
context.log.highlight("Lockout Duration: " + mins(lockoutDuration))
context.log.highlight("Observation Window: " + ("NONE" if str(lockoutThreshold) == "0" else mins(obersationWindow)))
context.log.highlight("Lockout Duration: " + ("NONE" if str(lockoutThreshold) == "0" else mins(lockoutDuration)))
context.log.highlight("Complexity Enabled: " + str(complexity))
context.log.highlight("Minimum Password Age: " + days(minPassAge))
context.log.highlight("Maximum Password Age: " + days(maxPassAge))