Files
fleet/schema/tables
Manoj GuglaniandEric f9c0b2444b Update account_policy_data.yml (#22684)
Missing comma between u.username, u.uid causes the query to fail with
this error (Note the query is only applicable to Mac OS):

```
osquery> SELECT u.username u.uid, strftime('%Y-%m-%dT%H:%M:%S', a.password_last_set_time, 'unixepoch') AS password_last_set_time, a.failed_login_count, strftime('%Y-%m-%dT%H:%M:%S', a.failed_login_timestamp, 'unixepoch') AS failed_login_timestamp FROM account_policy_data AS a CROSS JOIN users AS u USING (uid) ORDER BY password_last_set_time ASC;
Error: near ".": syntax error
```
Output after fixing the missing , (removed part of the output):

```
osquery> SELECT u.username, u.uid, strftime('%Y-%m-%dT%H:%M:%S', a.password_last_set_time, 'unixepoch') AS password_last_set_time, a.failed_login_count, strftime('%Y-%m-%dT%H:%M:%S', a.failed_login_timestamp, 'unixepoch') AS failed_login_timestamp FROM account_policy_data AS a CROSS JOIN users AS u USING (uid) ORDER BY password_last_set_time ASC;
+--------------+------------+------------------------+--------------------+------------------------+
| username     | uid        | password_last_set_time | failed_login_count | failed_login_timestamp |
+--------------+------------+------------------------+--------------------+------------------------+
| nobody       | 4294967294 |                        |                    |                        |
| root         | 0          |                        |                    |                        |
```
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->
- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
2024-10-07 11:05:17 -05:00
..
2023-11-17 12:17:23 -06:00
2024-06-03 10:40:23 -04:00
2024-06-04 11:27:15 -04:00
2024-06-03 21:17:14 -04:00
2024-06-03 17:05:48 -04:00
2024-09-03 12:24:24 -05:00
2024-06-11 11:44:07 -04:00
2024-06-11 11:02:50 -04:00
2023-11-17 12:17:23 -06:00
2024-06-13 19:29:37 -04:00
2024-06-12 15:03:16 -04:00
2024-06-13 20:50:07 -04:00
2024-06-12 21:11:38 -04:00
2024-06-14 17:34:02 -04:00