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_computer_to_ou creating duplicate computer object #15

Open
dhansuhvt opened this issue Aug 13, 2019 · 4 comments
Open

ad_computer_to_ou creating duplicate computer object #15

dhansuhvt opened this issue Aug 13, 2019 · 4 comments

Comments

@dhansuhvt
Copy link

Hello..Having issue when moving computer object to new OU.Rather than moving existing compute object it's creating new computer object in target OU.

provider "ad" {
domain = "${var.VM_Domain}"
user = "${var.domain_user}"
password = "${var.domain_admin_password}"
ip = "${var.ad_server_ip}"
}

Add computer to Organizational Unit of Active Directory

resource "ad_computer_to_ou" "server_ou" {
ou_distinguished_name = "${var.domain_ou}"
computer_name = "${var.vsphere_virtual_machine_name}"
}

@surajsub
Copy link

surajsub commented Aug 14, 2019

Did you use the provider to create the computer and then do a terraform plan to move it ? If so then it will not work. There is no update capability in this provider yet. Only Create/Read / Delete

@bhushan-rane
Copy link
Collaborator

Hello..Having issue when moving computer object to new OU.Rather than moving existing compute object it's creating new computer object in target OU.

provider "ad" {
domain = "${var.VM_Domain}"
user = "${var.domain_user}"
password = "${var.domain_admin_password}"
ip = "${var.ad_server_ip}"
}

Add computer to Organizational Unit of Active Directory

resource "ad_computer_to_ou" "server_ou" {
ou_distinguished_name = "${var.domain_ou}"
computer_name = "${var.vsphere_virtual_machine_name}"
}

@dhansuhvt this provider supports create new AD Object and not to move existing AD Object from one OU to other. Results your observing is expected.

@dhansuhvt
Copy link
Author

Thanks for the update .

@mael-brdn
Copy link

Hello..Having issue when moving computer object to new OU.Rather than moving existing compute object it's creating new computer object in target OU.
provider "ad" {
domain = "${var.VM_Domain}"
user = "${var.domain_user}"
password = "${var.domain_admin_password}"
ip = "${var.ad_server_ip}"
}

Add computer to Organizational Unit of Active Directory

resource "ad_computer_to_ou" "server_ou" {
ou_distinguished_name = "${var.domain_ou}"
computer_name = "${var.vsphere_virtual_machine_name}"
}

@dhansuhvt this provider supports create new AD Object and not to move existing AD Object from one OU to other. Results your observing is expected.

Will this feature be available at some point ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants