<html>Hi All,<br /><br />I've had one of those late-night surges of motivation, and managed to whip up a script that:<br />(1) Parses the latest disk usage statistics for "/away" from "/away/du/du.today";<br />(2) Treats the filename portion of each path in this report as a username;<br />(3) Looks up this username via `ldapsearch`;<br />(4) Calculates (in a human-readable format) things like whether or not the account is enabled and the date they last logged on; and finally<br />(5) Outputs all this (including the original `du` output) on a per-user basis in a quasi-LDIF format.<br /><br />If any of the above is jargon and doesn't make sense to you, here's an example of what this output looks like:<br />```<br /><span style="font-family:Courier New,Courier,monospace;">dn: CN=nick,CN=Users,DC=ad,DC=ucc,DC=gu,DC=uwa,DC=edu,DC=au<br />displayName: Nick Bannon<br />userAccountControl: 66048<br />lastLogonTimestamp: 133153150606203480<br />accountDisable: 0<br />lastLogonDate: Mon 12 Dec 18:37:40 AWST 2022<br />du: 1.9G /space/away/home/wheel/nick</span><br />```<br /><br />The script that generates this output is here: "/away/du/stats-lookup-accounts.sh"<br />A file with the generated output is here: "/away/du/du.ldap.20221227"<br /><br />Anyway, I'll (hopefully) plug away at some of this output over the course of this week and find some more candidate away directories to clean up.<br />If not, hopefully this is also useful to anyone else who feels like freeing up some space!<br /><br />--<br />Kind regards,<br />Dylan Hicks [333]</html>