Skip to content

Commit

Permalink
🐛 Construct SRE ldap_root_dn from SHM FQDN
Browse files Browse the repository at this point in the history
  • Loading branch information
jemrobinson committed Apr 15, 2024
1 parent 81146f7 commit 8706366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_safe_haven/infrastructure/stacks/declarative_sre.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def run(self) -> None:
self.pulumi_opts = pulumi.Config()

# Construct LDAP paths
ldap_root_dn = self.pulumi_opts.require("shm-domain_controllers-ldap_root_dn")
ldap_root_dn = f"DC={self.cfg.shm.fqdn.replace('.', ',DC=')}"
ldap_group_search_base = f"OU=groups,{ldap_root_dn}"
ldap_user_search_base = f"OU=users,{ldap_root_dn}"
ldap_group_name_prefix = f"Data Safe Haven SRE {self.sre_name}"
Expand Down

0 comments on commit 8706366

Please sign in to comment.