Skip to content

Releases: trevex/terraform-provider-ldap

v0.5.4

15 Nov 10:41
Compare
Choose a tag to compare
Update to go 1.16

v0.5.3

12 Nov 07:53
f995ca4
Compare
Choose a tag to compare
Merge pull request #10 from jokogr/support_darwin_arm64

goreleaser: Stop ignoring darwin-arm64

v0.5.2

11 Nov 17:47
7db0475
Compare
Choose a tag to compare

Added darwin arm support

v0.5.1

19 Apr 07:24
0d0db4e
Compare
Choose a tag to compare
  • @drastawi: use search entry DN field if available as they might not be available through attributes

v0.5.0

26 Mar 11:18
c33fffa
Compare
Choose a tag to compare

Adds ldap_object_attributes resource to add attributes to existing objects leaving them otherwise in-tact.

v0.4.0

18 Feb 13:26
Compare
Choose a tag to compare

Improvements and bugfixes:

  • Add select_attributes and skip_attributes to the data source so they aren't super noisy when doing a terraform plan. This is more a convenience function than anything. However, same rules apply: if you skip_attributes an attribute then it won't be readable from the data source. @oliverisaac
  • Also fixed a bug where terraform would give nil to the attribute hasher which would cause a panic. I could not figure out why terraform was sending nil to the attribute hasher, but, if it does, then we'll default to 0 rather than panicing. @oliverisaac

Due to human error and some erroneous releases in the >v0.3.1 range. This release is promoted to a minor release to avoid issues.

v0.3.0

10 Feb 09:58
908df98
Compare
Choose a tag to compare
  • data resource type to the provider so one can read objects @oliverisaac (example below)
variable "users" {
  type = set(string)
  default = [
    "oisaac",
    "auser"
  ]
}

data "ldap_object" "user" {
  for_each = var.users

  base_dn = "OU=Users,OU=Example,DC=ad,DC=example,DC=com"
  search_values = {
    sAMAccountName = each.key
  }
}

resource "ldap_object" "group" {
  dn = "CN=test-terraform,OU=Groups,OU=Example,DC=ad,DC=example,DC=com"
  object_classes = [
    "top",
    "group",
  ]

  attributes = [for u in var.users : { "member" = data.ldap_object.user[u].dn }]
  select_attributes = [
    "member"
  ]
}

// You also get access to attributes as a JSON encoded array which could be helpful
output "json_vals" {
  value = jsondecode(data.ldap_object.user["oisaac"].attributes_json["memberOf"])[0]
}

v0.2.0

09 Feb 09:07
3f06fb4
Compare
Choose a tag to compare
Merge pull request #1 from bushelpowered/add-skip-attributes

Add skip attributes option

v0.1.1

11 Dec 16:34
Compare
Choose a tag to compare
Treat unicodePwd field differently for AD/Samba compatibility

v0.1.0

11 Dec 08:35
Compare
Choose a tag to compare
Add goreleaser config and github release workflow