PowerCLI-Example-Scripts
PowerCLI-Example-Scripts copied to clipboard
Add-LDAPIdentitySource fails when secondary LDAPS server is defined, returning "Type or value exists"
Example:
Add-LDAPIdentitySource -Name 'stickers' -DomainName 'stickers.corp' -DomainAlias 'stickers' -PrimaryUrl 'ldaps://nyc-dc-01.stickers.corp:636' -SecondaryUrl 'ldaps://avs-dc-01.stickers.corp:636' -BaseDNUsers 'DC=stickers,DC=corp' -BaseDNGroups 'DC=stickers,DC=corp' -Username '[email protected]' -Password 'password' -Certificates 'C:\certs\nyc-dc-01.cer','C:\certs\avs-dc-01.cer'
Output:
Add-LDAPIdentitySource: Type or value exists
We are able to add a single LDAPS server with this function and then add a secondary LDAPS server via the vCenter Client.
In Azure VMware Solution environments, however, users do not have access to configure Identity Sources through the vCenter Client. Instead, AVS Run Commands are used to temporarily elevate permissions and execute the Add-LDAPIdentitySource function.