-
-
Notifications
You must be signed in to change notification settings - Fork 881
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
AUTH_LDAP_MIRROR_GROUPS ldap_config tweak #448
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the example file!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Meant to click Comment, not Approve.
Merge upstream changes
I'll build from develop locally and test when I get a chance since #450 is only in develop at this point. Give me a day or two. |
Do you think you have a chance to look into this anytime soon*ish? No hurry, I just want to know whether I should wait for it or otherwise postpone this change to the next release. |
I will have this tested today or tomorrow since this directly is tied to a new deployment I have to have in place by tomorrow evening. |
I tested as you suggested by mounting the volume to pull in the develop version of docker/configuration.docker.py from #450 The extra.py still works as it did before. IE if I do not comment out the variables set in ldap.py that overlap with what I declare in extra.py, the settings declared in extra.py that overlap do not take. All the other non-overlapping variables take no matter which file they are declared in. |
I say bump my PRs to the next release. No need to further hold up here. |
If you still have this problem you can do some more tests like this:
Modify the method def __getattr__(name):
for config in _loaded_configurations:
try:
attr = getattr(config, name)
print(f"Returning '{name}' from '{config}'")
return attr
except:
print(f"'{name}' not found in '{config}'")
pass
raise AttributeError This will produce lines (a lot, basically for every settings access) like these:
Then you can see from where the values are loaded. |
@ryanmerolle , just checking what's the status here, as I lost track 🙈 |
I was quite distracted the past month with the birth of my daughter. I plan to dig this back up along with some of my other netbox-docker items in the next week. |
Congratulations, I hope she and your family are all well! There's no rush, just good to know that you're still on it. |
pull in develop changes
instead of making a feature branch in my fork I developed in the develop branch. Once this PR gets merged or rejected I will tackle #461 |
Apologies. I forgot to commit my changes. This should be fixed now @cimnine |
Happens to all of us 😅 |
Related Issue: Fixes #445
New Behavior
If
AUTH_LDAP_MIRROR_GROUPS
not set in environment variables, it will not be set inldap_config.py
, allowing for ldap config shown in the new exampleconfiguration\ldap\extra.py
Contrast to Current Behavior
If
AUTH_LDAP_MIRROR_GROUPS
not set in environment variables, it is set to empty inldap_config.py
Discussion: Benefits and Drawbacks
See #445
Changes to the Wiki
TBD, likely will suggest something with regards to language around the #343 function and the example
configuration\ldap\extra.py
file included.Proposed Release Note Entry
AUTH_LDAP_MIRROR_GROUPS
list of groups to be specified.Double Check
develop
branch.