Add SecondaryUrl parameter to Add-LDAPIdentitySource

This commit is contained in:
Dimitar Milov
2021-02-17 16:38:46 +02:00
parent 13dc050dd2
commit 8606722f6e
7 changed files with 14 additions and 1 deletions

View File

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

View File

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

View File

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