[tech] Fwd: Cron <root at monnik> cd /etc/bind/domains/primary && ./usergrab.py && cp ucc-user-db.json /services/usercache/cache/

Mark Tearle mtearle at ucc.asn.au
Sun Mar 10 22:22:50 AWST 2024


Hi tpg, zixty

Probably the quickest way to fix usergrab.py is to grab the functions from an earlier commit of zonemake.py and add them to usergrab.py

Basic purpose of usergrab.py is to cache UCC users as AD is not necessarily guaranteed to enumerate users reliably.

Cheers,
Mark

--
Mark Tearle <mtearle at ucc.asn.au>

On Sun, 10 Mar 2024, at 4:09 PM, John Hodge wrote:
> Probably not. I didn't realise it was a thing, I only recreated the outputs of original zonemake.
> 
> John Hodge [TPG]
> UCC Wheel Member
> On 10/03/2024 4:08 pm, Gearoid (zixty) O'Donovan wrote:
>> Hi tpg,
>> 
>> Is the functionality of usergrab.py and the copying of the userdb file replaced in zonemake2? If so, can I delete this old cronjob and has it been replaced by a new one?
>> 
>> Cheers,
>> zixty
>> 
>> 
>> -------- Forwarded Message --------
>> Subject:
>> Cron <root at monnik> cd /etc/bind/domains/primary && ./usergrab.py && cp ucc-user-db.json /services/usercache/cache/
>> Date:
>> Sun, 10 Mar 2024 12:10:01 +0800 (AWST)
>> From:
>> Cron Daemon <root at ucc.gu.uwa.edu.au>
>> To:
>> root at ucc.gu.uwa.edu.au
>> 
>> 
>> Traceback (most recent call last):
>> File "/etc/bind/domains/primary/./usergrab.py", line 23, in <module>
>> from zonemake import isValidUser, loadUsersFromJSON, updateUserDB, removeExpiredFromUserDB, dumpUsersToJSON, checkUserDB, removeInvalidFromUserDB
>> ModuleNotFoundError: No module named 'zonemake'
> _______________________________________________
> List Archives: http://lists.ucc.gu.uwa.edu.au/pipermail/tech
> 
> Unsubscribe here: https://lists.ucc.gu.uwa.edu.au/mailman/options/tech/mtearle%40ucc.gu.uwa.edu.au
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ucc.gu.uwa.edu.au/pipermail/tech/attachments/20240310/29448099/attachment.htm>


More information about the tech mailing list