-
-
Notifications
You must be signed in to change notification settings - Fork 934
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update AUTH_LDAP_MIRROR_GROUPS handling #445
Comments
This should easily be achieved using dynamic configuration, as introduced in 0.26.0 (PR #343 respectively). Create a second configuration file and mount it where |
This approach is very useful, but I do not think defining a list of My thought is to add a conditional into the current |
I was under the impression that 'other' config files (e.g. |
I have tried and it seemed like it did not override for existing vars that were set. It just allowed me to add to the config which is still a good way to extend ldap_config |
I think the problem that an existing variable is not overridden lies within the This is just from looking at the code. I have to verify this theory. If this is the case we should fix the loop. |
This would also explain that loading the main configuration is always shown twice in the logs – because it actually happens twice. |
Desired Behavior
Per the Django LDAP documentation, the var can be set to True, False, or
Contrast to Current Behavior
The
ldap_config.py
only assumes the environment variable is true or false.Changes Required
Update
ldap_config.py
anddocker-compose.yml
environment variables, or just document in the wiki.Discussion: Benefits and Drawbacks
By adding to the python, we can ensure confusion due to this current feature gap with the documented django-auth-ldap.
I can look at tackling this, but I wanted to open up for discussion and approach. We could even look to add support for
AUTH_LDAP_MIRROR_GROUPS_EXCEPT
.The text was updated successfully, but these errors were encountered: