Skip to content
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

fix(docker-jans-persistence-loader): passing CN_SCIM_ENABLED doesn't toggle jansScimEnabled config #6952

Merged
merged 1 commit into from Dec 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions docker-jans-persistence-loader/scripts/upgrade.py
Expand Up @@ -817,6 +817,11 @@ def update_config(self):
entry.attrs["jansSmtpConf"][0] = json.dumps(new_smtp_conf)
should_update = True

scim_enabled = as_boolean(os.environ.get("CN_SCIM_ENABLED", False))
if as_boolean(entry.attrs["jansScimEnabled"]) != scim_enabled:
entry.attrs["jansScimEnabled"] = scim_enabled
should_update = True

if should_update:
self.backend.modify_entry(entry.id, entry.attrs, **kwargs)

Expand Down