Hi,
I try to setup Exchange 2019 in SolidCP, so the first step is to add a Hosted Organization to the hosting space.
After try to add the Hosted Organization to my test hosting space, I got an error message:
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: Error executing 'CREATE_ORG' task on 'exchangetest.eu' ORGANIZATION ---> System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> There is no such object on the server. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at SolidCP.Providers.HostedSolution.Organizations.CreateOrganization(String organizationId) at SolidCP.EnterpriseServer.OrganizationController.CreateOrganization(Int32 packageId, String organizationId, String organizationName, String domainName) --- End of inner exception stack trace --- at SolidCP.EnterpriseServer.OrganizationController.CreateOrganization(Int32 packageId, String organizationId, String organizationName, String domainName) at SolidCP.EnterpriseServer.esOrganizations.CreateOrganization(Int32 packageId, String organizationID, String organizationName, String domainName) --- End of inner exception stack trace ---
After setting the Log mode to Verbose on the target server, I see an error message:
[7/8/2019 2:20:28 PM] ERROR: HostedSolution
System.DirectoryServices.DirectoryServicesCOMException (0x80072030): There is no such object on the server.at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.PropertyCollection.Contains(String propertyName)
at SolidCP.Providers.HostedSolution.ADPermission.SetOUAclPermissions(OrganizationProvider orgProvider, String organizationId, String rootDomain, String rootDomainPath)
at SolidCP.Providers.HostedSolution.OrganizationProvider.SetOUAclPermissions(String organizationId)
And the Information message before the error (for privacy not actual names):
[7/8/2019 2:20:28 PM] INFO: dSHeuristicsOU: LDAP://hidden.ADDomainName.systems/CN=Directory Service,CN= Windows NT,CN= Services,CN= Configuration,DC=ADDomainName,DC=systems
So SolidCP try to open the Directory Service in LDAP.
But I have 2 domains in one forest and the 'hosting' domain have not the same name as the forest name.
So I think I hit a bug, and the LDAP query needs to be:
[7/8/2019 2:20:28 PM] INFO: dSHeuristicsOU: LDAP://hidden.ADDomainName.systems/CN=Directory Service,CN= Windows NT,CN= Services,CN= Configuration,DC=ADForestName,DC=systems
Or do I need to change my settings?
I think the best solution to 'build' the LDAP query, is first to get the 'configurationNamingContext' in LDAP://RootDSE