Skip to content

Commit

Permalink
* 1.3.1 -- 2024-10-31
Browse files Browse the repository at this point in the history
  - group-assignment
    - remove bad [DynamicDN] from memberUid for group
  • Loading branch information
badra001 committed Oct 31, 2024
1 parent ba92692 commit 7831007
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@
* 1.3.0 -- 2024-08-29
- group-assignment
- add ldap_group option to the settings to be used for EDL u- groups

* 1.3.1 -- 2024-10-31
- group-assignment
- remove bad [DynamicDN] from memberUid for group
2 changes: 1 addition & 1 deletion common/version.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals {
_module_version = "1.3.0"
_module_version = "1.3.1"
}
2 changes: 1 addition & 1 deletion group-assignment/users.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ data "aws_identitystore_user" "users" {

locals {
ldap_groups_base_dn = "o=U.S. Census Bureau,c=US"
ldap_groups_members = distinct(flatten([for k, v in data.ldap_object.ldap_groups : [for m in jsondecode(lookup(v.attributes_json, "memberUid", "")) : m if ! startswith(m, "p-")]]))
ldap_groups_members = distinct(flatten([for k, v in data.ldap_object.ldap_groups : [for m in jsondecode(lookup(v.attributes_json, "memberUid", "")) : m if ! startswith(m, "p-") && (m != "[DynamicDN]")]]))
}

data "ldap_object" "ldap_groups" {
Expand Down

0 comments on commit 7831007

Please sign in to comment.