Hi Milosz,
I don't think what I did is exactly what you asked for, but it shows exactly how I've done it and provides access to you. I created a fork and just added the lines in there, the links to each addition are: - init var to None https://gitlab.com/MichaelPed/lava/-/blob/master/lava_server/settings/common...
- get config value with values.get() https://gitlab.com/MichaelPed/lava/-/blob/master/lava_server/settings/common...
- run if and eval config value and set https://gitlab.com/MichaelPed/lava/-/blob/master/lava_server/settings/common...
Feel free to work with it as you like, I made no other changes elsewhere other than maybe a print in the addldapuser command code to see the value of settings.AUTH_LDAP_MIRROR_GROUPS (which showed it was correctly set everytime, as far as I could tell). If you need anything more from me, let me know and I will do my best.
Best regards, Michael