Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ad_user throws error when fields contain special characters #172

Open
markus-volkert-mint opened this issue Mar 29, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@markus-volkert-mint
Copy link

markus-volkert-mint commented Mar 29, 2023

Terraform Version and Provider Version

Terraform v1.4.2
on windows_amd64
+ provider registry.terraform.io/hashicorp/ad v0.4.4

Windows Version

Windows Server 2019

Affected Resource(s)

  • ad_user

Terraform Configuration Files

terraform {
  required_providers {
    ad = {
      source = "hashicorp/ad"
      version = "0.4.4"
    }
  }
}

provider "ad" {
  winrm_hostname = ""
  winrm_username = ""
  winrm_password = ""
}

resource "ad_ou" "o" {
  name        = "test-user"
  path        = "DC=test,DC=de"
  protected   = false
}

resource "ad_user" "special" {
  principal_name            = "söüäß-éòñ"
  sam_account_name          = "söüäß-éòñ"
  display_name              = "Special öüäß-éòñ"
  email_address             = "special.öüäß-éòñ@test.local"
  initial_password          = "Password123!"
  container                 = "OU=test-user,DC=test,DC=de"
}

Debug Output

https://gist.github.com/markus-volkert-mint/92ac74b39277ecc9214347ec9b6b0c1d

Expected Behavior

I would expect the user to be created with all special characters correctly interpreted.

Actual Behavior

I receive an error message and the user is not created.

Steps to Reproduce

  1. terraform apply

This error occurs both in Powershell (PSVersion 5.1) and in the commandline.

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant