rancher / terraform-provider-rancher2

Terraform Rancher2 provider
https://www.terraform.io/docs/providers/rancher2/
Mozilla Public License 2.0
253 stars 216 forks source link

[BUG] rancher2_auth_config_activedirector: refusing to set principal on user that is already bound to another user #1261

Closed papanito closed 8 months ago

papanito commented 8 months ago

Rancher Server Setup

Information about the Cluster

papanito commented 8 months ago

Apparently you should not use the same user for manual testing and for the terraform plan. Based on the AD docu

The AD user pertaining to the credentials entered in this step will be mapped to the local principal account and assigned administrator privileges in Rancher.

Hence, while I do a test with a different user (myself) for the AD config in the UI, I then can apply the changes with the desired user in terraform.

You also can check with

kubectl get userattributes.management.cattle.io -ocustom-columns='NAME:.metadata.name,GENERATION:.metadata.generation,LASTREFRESH:.LastRefresh,EXTRABYPROVIDER:.ExtraByProvider'