GSLabDev / terraform-provider-ad

Automates the Active Directory resource creation during Infrastructure build using Terraform Provider.
Mozilla Public License 2.0
61 stars 31 forks source link

error using subdomain #28

Closed stempher closed 4 years ago

stempher commented 4 years ago

If the domain has more than two dc (subdomain), we get an error

Example:

resource "ad_add_to_group" "test" {
  target_group = "CN=test,DC=subdomain,DC=domain,DC=com"
  dns_to_add = [
    "CN=test2,DC=subdomain,DC=domain,DC=com"
  ]
}

Error:

Error while searching group : LDAP Result Code 10 "Referral": 0000202B: RefErr: DSID-03100835, data 0, 1 access points
  ref 1: 'domain.com'
bhushan-rane commented 4 years ago

thank you for contribution.