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

Add name property to set the AD object name #130

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bmhughes
Copy link

Description

Right now the AD object name for an ad_user resource is always set to the sAMAccountName value, add the ability to set this independently.

References

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

@hashicorp-cla
Copy link

hashicorp-cla commented Mar 12, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@koikonom koikonom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello! Thanks for this PR. Unfortunately it introduces a breaking change and we cannot merge it right now as is. See my comments below for more information.

Comment on lines +75 to +79
if u.Name != "" {
cmds = append(cmds, fmt.Sprintf("New-ADUser -Passthru -Name %q", u.Name))
} else {
cmds = append(cmds, fmt.Sprintf("New-ADUser -Passthru -Name %q", u.Username))
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will introduce state changes for existing users that may cause confusion. Although I understand the purpose of it we cannot make this is a breaking change that will have to wait for a major release.

We can either keep the whole PR on hold, or remove these lines and open a separate to make this change in the future.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm personally OK to wait for the next major release as I've got a forked build in a container with a couple of the open PRs to use in the meantime.

ThaVip3r added a commit to ThaVip3r/terraform-provider-ad that referenced this pull request Mar 2, 2023
Add name property to set the AD object name hashicorp#130
ThaVip3r added a commit to ThaVip3r/terraform-provider-ad that referenced this pull request Mar 2, 2023
Add name property to set the AD object name hashicorp#130
ThaVip3r added a commit to ThaVip3r/terraform-provider-ad that referenced this pull request Mar 2, 2023
Add name property to set the AD object name hashicorp#130
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants