Skip to content

Commit

Permalink
fix(docker-jans-persistence-loader): passing CN_SCIM_ENABLED doesn't …
Browse files Browse the repository at this point in the history
…toggle jansScimEnabled config (#6952)

Signed-off-by: iromli <isman.firmansyah@gmail.com>
Signed-off-by: Mustafa Baser <mbaser@mail.com>
  • Loading branch information
iromli authored and devrimyatar committed Dec 7, 2023
1 parent 3e1ff90 commit 0b9efaa
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 0b9efaa

Please sign in to comment.