mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
11 lines
459 B
YAML
11 lines
459 B
YAML
name: password_policy
|
|
examples: >-
|
|
This policy query will return a 1 if the password policy requires passwords that are 10 characters
|
|
or longer.
|
|
|
|
```
|
|
|
|
SELECT 1 FROM (SELECT cast(lengthtxt as integer(2)) minlength FROM (SELECT SUBSTRING(length, 1, 2) AS lengthtxt FROM (SELECT policy_description, policy_identifier, split(policy_content, '{', 1) AS length FROM password_policy WHERE policy_identifier LIKE '%minLength')) WHERE minlength >= 10);
|
|
|
|
```
|