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

Error: Empty principal name is not allowed #11

Open
Aj1991ay opened this issue Jul 5, 2022 · 1 comment
Open

Error: Empty principal name is not allowed #11

Aj1991ay opened this issue Jul 5, 2022 · 1 comment
Assignees
Labels
bug Bug
Milestone

Comments

@Aj1991ay
Copy link

Aj1991ay commented Jul 5, 2022

Hi,
I am trying to map my onprem site with vmc cloud and it fails with error “Empty principal name not allowed” . However I am passing all the details but still not able to rectify the issue

@Aj1991ay
Copy link
Author

Aj1991ay commented Jul 5, 2022

terraform {
  required_providers {
    hcx = {
      source  = "adeleporte/hcx"
    }
  }
}

provider "hcx" {
    hcx                   = var.hcx_url
    admin_username        = var.hcx_admin_username
    admin_password        = var.hcx_admin_password
}

resource "hcx_site_pairing" "auto_hcx_1" {
    url         = var.remote_hcx_url
    username    = var.remote_hcx_username
    password    = var.remote_hcx_password
}

output "hcx_site_pairing_site1" {
    value = hcx_site_pairing.auto_hcx_1.id
}
Error: body: <?xml version='1.0' encoding='UTF-8'?><linked-hash-map><entry><string>timestamp</string><date>2022-07-05 17:11:49.961 UTC</date></entry><entry><string>status</string><int>401</int></entry><entry>s0:RequestFailed&lt;/faultcode>&lt;faultstring>Empty principal name is not allowed&lt;/faultstring>&lt;/S:Fault>&lt;/S:Body>&lt;/S:Envelope></string></entry><entry><string>path</string><string>/hybridity/api/sessions</string></entry></linked-hash-map>

  with hcx_site_pairing.auto_hcx_1,
  on main.tf line 15, in resource "hcx_site_pairing" "auto_hcx_1":
  15: resource "hcx_site_pairing" "auto_hcx_1" {

@tenthirtyam tenthirtyam added the bug Bug label Dec 19, 2024
@tenthirtyam tenthirtyam added this to the Backlog milestone Jan 7, 2025
@tenthirtyam tenthirtyam changed the title Empty principal name error while site mapping Error: Empty principal name is not allowed Jan 7, 2025
tenthirtyam added a commit that referenced this issue Jan 22, 2025
Rmeove unused types.

Ref: #11

Signed-off-by: Ryan Johnson <[email protected]>
@tenthirtyam tenthirtyam self-assigned this Jan 28, 2025
@tenthirtyam tenthirtyam modified the milestones: Backlog, .next, v0.5.2 Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug
Projects
None yet
Development

No branches or pull requests

2 participants