Merge pull request #418 from dmilov/topic/dmilov/failoverurl

Add SecondaryUrl parameter to Add-LDAPIdentitySource
This commit is contained in:
dmilov
2021-02-17 16:40:18 +02:00
committed by GitHub
7 changed files with 14 additions and 1 deletions

View File

@@ -11,7 +11,7 @@
RootModule = 'VMware.vSphere.SsoAdmin.psm1'
# Version number of this module.
ModuleVersion = '1.2.0'
ModuleVersion = '1.2.1'
# ID used to uniquely identify this module
GUID = 'b3e25326-e809-4d68-a252-ca5fcaf1eb8b'

View File

@@ -1497,6 +1497,9 @@ function Add-LDAPIdentitySource {
.PARAMETER PrimaryUrl
Primary Server URL
.PARAMETER SecondaryUrl
Secondary Server URL
.PARAMETER BaseDNUsers
Base distinguished name for users
@@ -1560,6 +1563,13 @@ function Add-LDAPIdentitySource {
[string]
$DomainAlias,
[Parameter(
Mandatory=$false,
ValueFromPipeline=$false,
ValueFromPipelineByPropertyName=$false)]
[string]
$SecondaryUrl,
[Parameter(
Mandatory=$true,
ValueFromPipeline=$false,
@@ -1647,6 +1657,7 @@ function Add-LDAPIdentitySource {
$DomainAlias,
$Name,
$PrimaryUrl,
$SecondaryUrl,
$BaseDNUsers,
$BaseDNGroups,
$Username,

View File

@@ -663,6 +663,7 @@ namespace VMware.vSphere.SsoAdminClient
string domainAlias,
string friendlyName,
string primaryUrl,
string failoverUrl,
string baseDNUsers,
string baseDNGroups,
string authenticationUserName,
@@ -677,6 +678,7 @@ namespace VMware.vSphere.SsoAdminClient
var adminLdapIdentitySourceDetails = new SsoAdminLdapIdentitySourceDetails {
friendlyName = friendlyName,
primaryUrl = primaryUrl,
failoverUrl = failoverUrl,
userBaseDn = baseDNUsers,
groupBaseDn = baseDNGroups
};