vmware / power-validated-solutions-for-cloud-foundation

PowerShell Module for VMware Validated Solutions
https://vmware.github.io/power-validated-solutions-for-cloud-foundation/
BSD 2-Clause "Simplified" License
45 stars 24 forks source link

When adding a directory to WSA it fails with Cannot validate argument on parameter 'connectorId'. The argument is null or empty. #754

Closed GaryJBlake closed 2 months ago

GaryJBlake commented 2 months ago

Code of Conduct

VMware Cloud Foundation

5.1.1

Module Version

2.11.0.1057

PowerShell Version

7.4.2

PowerCLI Version

13.2.1.22851661

PowerVCF Version

2.4.1.1000

Guest Operating System

Windows Server 2022

Environment Details

No response

Description

Error at Script Line 1680 Relevant Command: Set-WSABindPassword -directoryId $directory.directoryConfigId -connectorId $connector.instanceId -pass $bindUserPass | Out-Null Error Message: Cannot validate argument on parameter 'connectorId'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.

Error or Debug Output

N/A

Expected Behavior

Complete without error

Actual Behavior

Error at Script Line 1680 Relevant Command: Set-WSABindPassword -directoryId $directory.directoryConfigId -connectorId $connector.instanceId -pass $bindUserPass | Out-Null Error Message: Cannot validate argument on parameter 'connectorId'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.

Steps to Reproduce

Manually execute:

Add-WorkspaceOneDirectory -server [xint-idm01.rainpole.io](http://sfo-wsa01.sfo.rainpole.io/) -user admin -pass VMw@re1! -domain [sfo.rainpole.io](http://sfo.rainpole.io/) -baseDnUser "OU=Security Users,DC=sfo,DC=rainpole,DC=io" -baseDnGroup "OU=Security Groups,DC=sfo,DC=rainpole,DC=io" -bindUserDn "CN=svc-idm-ad,OU=Security Users,DC=sfo,DC=rainpole,DC=io" -bindUserPass VMw@re1! -adGroups "gg-idm-admins", "gg-idm-directory-admins", "gg-idm-read-only", "gg-lcm-admins", "gg-lcm-release-managers", "gg-lcm-content-developers" -protocol "ldaps" -certificate "F:\VVS\certificates\Root64.pem"

Log Fragments and Files

No response

Screenshots

No response

References

No response

github-actions[bot] commented 1 month ago

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.