-
Notifications
You must be signed in to change notification settings - Fork 70
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
base: main
Are you sure you want to change the base?
Conversation
8c92392
to
a545dfe
Compare
There was a problem hiding this 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.
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)) | ||
} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
a545dfe
to
775cfe8
Compare
Add name property to set the AD object name hashicorp#130
Add name property to set the AD object name hashicorp#130
Add name property to set the AD object name hashicorp#130
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