Billy H
07/21/2025, 8:21 PMpwd_policy table and whenever we call the days_to_expiration value, it always comes back empty, regardless of the host we query. Any ideas why?Matt Rebelo
07/22/2025, 5:38 PMBilly H
07/22/2025, 5:54 PMMatt Rebelo
07/23/2025, 12:21 PMBilly H
07/23/2025, 6:38 PMMatt Rebelo
07/24/2025, 1:06 PMget policyAttributeDaysUntilExpiration failed
That's the error that's supposed to be output when there's no value policyAttributeDaysUntilExpiration and could indicate there is something wrong with the password expiration config.Billy H
07/24/2025, 2:31 PMpolicyAttributeDaysUntilExpiration any where in the logs, tried rerunning the query and researching for it but no luckBilly H
07/24/2025, 2:33 PM<key>maxPINAgeInDays</key>
<integer>365</integer>
I can confirm that the password policy is working, because the users are forced to change their passwords at that time, when running SELECT * FROM pwd_policy in osquery the expires_every_n_days field returns 365, and we can also see a countdown for the password rotation in our configuration of SupportApp that Root3 makesMatt Rebelo
07/25/2025, 7:18 PMMatt Rebelo
07/28/2025, 6:57 PMBilly H
07/28/2025, 7:04 PMMatt Rebelo
07/28/2025, 8:26 PMBilly H
07/28/2025, 8:27 PMBilly H
10/06/2025, 4:08 PMsecondsUntilPasswordExpires for each UID on the system with Osquery? https://developer.apple.com/documentation/opendirectory/odrecord/secondsuntilpasswordexpires
I was able to find this because it looks like that is what the SupportApp by Root3 references to get the password expiration time: https://github.com/root3nl/SupportApp/blob/f596fa90a762990e035d00a06b1977e5897709b2/src/Support/UserInfo.swift#L160C58-L160C85Matt Rebelo
10/07/2025, 3:06 PMBilly H
10/07/2025, 3:06 PM