Remove searchAllDomains files from lookup service filter
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -348,11 +348,6 @@ namespace LookupServiceReference
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[System.Xml.Serialization.XmlElementAttribute(Order = 5)]
|
|
||||||
public bool searchAllSsoDomains {
|
|
||||||
get;
|
|
||||||
set;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <remarks/>
|
/// <remarks/>
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ namespace VMware.vSphere.LsClient
|
|||||||
var lsUri = $"https://{hostname}/lookupservice/sdk";
|
var lsUri = $"https://{hostname}/lookupservice/sdk";
|
||||||
|
|
||||||
_lsClient = new LsPortTypeClient(GetBinding(), new EndpointAddress(new Uri(lsUri)));
|
_lsClient = new LsPortTypeClient(GetBinding(), new EndpointAddress(new Uri(lsUri)));
|
||||||
|
|
||||||
var serverAuthentication = GetServerAuthentication(serverCertificateValidator);
|
var serverAuthentication = GetServerAuthentication(serverCertificateValidator);
|
||||||
|
|
||||||
if (serverAuthentication != null)
|
if (serverAuthentication != null)
|
||||||
@@ -40,7 +40,7 @@ namespace VMware.vSphere.LsClient
|
|||||||
.Credentials
|
.Credentials
|
||||||
.ServiceCertificate
|
.ServiceCertificate
|
||||||
.SslCertificateAuthentication = serverAuthentication;
|
.SslCertificateAuthentication = serverAuthentication;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Private Helpers
|
#region Private Helpers
|
||||||
@@ -76,7 +76,7 @@ namespace VMware.vSphere.LsClient
|
|||||||
return transport;
|
return transport;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Binding GetBinding() {
|
private static Binding GetBinding() {
|
||||||
var binding = new CustomBinding(GetWcfEncoding(), GetWcfTransport(true));
|
var binding = new CustomBinding(GetWcfEncoding(), GetWcfTransport(true));
|
||||||
|
|
||||||
var timeout = TimeSpan.FromSeconds(WEB_OPERATION_TIMEOUT_SECONDS);
|
var timeout = TimeSpan.FromSeconds(WEB_OPERATION_TIMEOUT_SECONDS);
|
||||||
@@ -88,7 +88,7 @@ namespace VMware.vSphere.LsClient
|
|||||||
return binding;
|
return binding;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public Uri GetSsoAdminEndpointUri() {
|
public Uri GetSsoAdminEndpointUri() {
|
||||||
var product = "com.vmware.cis";
|
var product = "com.vmware.cis";
|
||||||
var endpointType = "com.vmware.cis.cs.identity.admin";
|
var endpointType = "com.vmware.cis.cs.identity.admin";
|
||||||
@@ -108,7 +108,6 @@ namespace VMware.vSphere.LsClient
|
|||||||
|
|
||||||
var svcContent = _lsClient.RetrieveServiceContentAsync(RootMoRef).Result;
|
var svcContent = _lsClient.RetrieveServiceContentAsync(RootMoRef).Result;
|
||||||
var filterCriteria = new LookupServiceRegistrationFilter() {
|
var filterCriteria = new LookupServiceRegistrationFilter() {
|
||||||
searchAllSsoDomains = true,
|
|
||||||
serviceType = new LookupServiceRegistrationServiceType {
|
serviceType = new LookupServiceRegistrationServiceType {
|
||||||
product = product,
|
product = product,
|
||||||
type = type
|
type = type
|
||||||
@@ -129,7 +128,7 @@ namespace VMware.vSphere.LsClient
|
|||||||
result = new Uri(registrationEndpooint.url);
|
result = new Uri(registrationEndpooint.url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user