On Tue, Sep 18, 2018, at 9:30 AM, Dmitry Makovey wrote:
On 09/18/2018 09:22 AM, Abhilash Raj wrote:
I think I am asking about the username/password auth for postorious and how to dump/restore it. At present we have no tools for dump/restoring users so that's what we're trying to build.
Ah, why not take a database dump? There are a few specific tables that you can dump to get everything?
We don't have a way to do that because we do not actually do not handle auth ourselves, but instead delegate it to allauth library. You may have to dig into internals of that to be able to fetch/restore users/passwords.
Thanks for picking up the thread, Abhilash.
Since we're trying to get solution that would allow us to dump/restore members/users of specific mailing list etc. we need a bit more "precise" method of extracting user info. We also suspect our DB could be corrupt (we have multiple address entries per member, of which 1 would have proper address and the rest are with empty fields, what's more the ones referenced from other tables are mainly those with empty fields) thus would like to dump "clean" objects and refresh DB rather than copy corruption from DB to DB.
I was looking at the allauth docs and wasn't able to find any public API (http or python) to export/import users.
So, I'd say the best way would be use a combination of Mailman's API and Django API in a python script to filter the members/users you want to export and import.
You can ask here for help if you need any with writing the script, but there are good docs for Django's API and for mailmanclient too.
-- Sr System and DevOps Engineer SoM IRT
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Email had 1 attachment:
- signature.asc 1k (application/pgp-signature)
-- thanks, Abhilash Raj (maxking)