<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi tpg, zixty<br></div><div><br></div><div>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<br></div><div><br></div><div>Basic purpose of usergrab.py is to cache UCC users as AD is not necessarily guaranteed to enumerate users reliably.<br></div><div><br></div><div>Cheers,<br></div><div>Mark</div><div><br></div><div id="sig26513633"><div class="signature">--</div>
<div class="signature">Mark Tearle <<a href="mailto:mtearle@ucc.asn.au">mtearle@ucc.asn.au</a>></div></div><div><br></div><div>On Sun, 10 Mar 2024, at 4:09 PM, John Hodge wrote:<br></div><blockquote type="cite" id="qt" style=""><p>Probably not. I didn't realise it was a thing, I only recreated
the outputs of original zonemake.<br></p><pre class="qt-moz-signature" cols="72">John Hodge [TPG]
UCC Wheel Member<br></pre><div class="qt-moz-cite-prefix">On 10/03/2024 4:08 pm, Gearoid (zixty)
O'Donovan wrote:<br></div><blockquote type="cite" cite="mid:7ea58cbb-7d79-4d72-aecb-569c5ed1a70b@ucc.asn.au"><p>Hi tpg,<br></p><p>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?<br></p><div>Cheers,<br></div><div> zixty<br></div><div class="qt-moz-forward-container"><div><br></div><div><br></div><div>-------- Forwarded Message --------<br></div><table class="qt-moz-email-headers-table" cellspacing="0" cellpadding="0" border="0"><tbody><tr><th valign="BASELINE" nowrap="nowrap" align="RIGHT">Subject:<br></th><td>Cron <root@monnik> cd /etc/bind/domains/primary
&& ./usergrab.py && cp ucc-user-db.json
/services/usercache/cache/<br></td></tr><tr><th valign="BASELINE" nowrap="nowrap" align="RIGHT">Date:<br></th><td>Sun, 10 Mar 2024 12:10:01 +0800 (AWST)<br></td></tr><tr><th valign="BASELINE" nowrap="nowrap" align="RIGHT">From:<br></th><td>Cron Daemon <a class="qt-moz-txt-link-rfc2396E" href="mailto:root@ucc.gu.uwa.edu.au"><root@ucc.gu.uwa.edu.au></a><br></td></tr><tr><th valign="BASELINE" nowrap="nowrap" align="RIGHT">To:<br></th><td><a class="qt-moz-txt-link-abbreviated qt-moz-txt-link-freetext" href="mailto:root@ucc.gu.uwa.edu.au">root@ucc.gu.uwa.edu.au</a><br></td></tr></tbody></table><div><br></div><div><br></div><div>Traceback (most recent call last):<br></div><div> File "/etc/bind/domains/primary/./usergrab.py", line 23, in
<module><br></div><div> from zonemake import isValidUser, loadUsersFromJSON,
updateUserDB, removeExpiredFromUserDB, dumpUsersToJSON,
checkUserDB, removeInvalidFromUserDB<br></div><div> ModuleNotFoundError: No module named 'zonemake'<br></div></div></blockquote><div>_______________________________________________<br></div><div>List Archives: <a href="http://lists.ucc.gu.uwa.edu.au/pipermail/tech">http://lists.ucc.gu.uwa.edu.au/pipermail/tech</a><br></div><div><br></div><div>Unsubscribe here: <a href="https://lists.ucc.gu.uwa.edu.au/mailman/options/tech/mtearle%40ucc.gu.uwa.edu.au">https://lists.ucc.gu.uwa.edu.au/mailman/options/tech/mtearle%40ucc.gu.uwa.edu.au</a><br></div><div><br></div></blockquote><div><br></div></body></html>