Share via


Hosted CDI::GetOrganizationSettings

The GetOrganizationSettings method retrieves the CDI settings for a specified organization.

Arguments

No arguments.

Remarks

Method Syntax

The GetOrganizationSettings method has the following syntax:

 
public string GetOrganizationSettings( 
string path,  
string preferredDomainController, 
bool sendCredentials) 
 

Sample Code

Example XML Request

No example XML request.

Example XML Response

 
<response> 
  <data> 
<path>LDAP://OU=AlpineSkiHouse,OU=ConsolidatedMessenger,OU=Hosting,DC=Fabrikam,DC=Com</path> 
        <remoteDomains> 
                <remoteDomain> 
                        <remoteNetBiosDomainName>Alpine</remoteNetBiosDomainName> 
                        <remoteFQDNDomainName>Alpine.com</remoteFQDNDomainName> 
<remotePreferredDomainController>AlpineAD.Alpine.Com</remotePreferredDomainController> 
<remoteAdministratorContact>admin@Alpine.com</remoteAdministratorContact> 
                </remoteDomain> 
        </remoteDomains> 
<preferredDomainController>ad0l.fabrikam.com</preferredDomainController> 
  </data> 
</response> 
 

Typical C# Usage

 
//Get user name and password. 
string userName = this.Request.ServerVariables.Get("AUTH_USER"); 
string pass = this.Request.ServerVariables.Get("AUTH_PASSWORD"); 
//Set credentials. 
HostedCDI.PreAuthenticate = true; 
HostedCDI.Credentials = new NetworkCredential(userName,pass); 
lblMsg.InnerHtml = mpsResponseHeaderLabel; 
//Display response. 
this.mpsResponse.DocumentSource = ""; 
response = HostedCDI.GetOrganizationSettings(path,preferredDomainController, sendCredentials); 
// set the response XML to match the return from MPF 
responseXml.LoadXml(response); 
this.mpsResponse.Document = responseXml; 
lblDone.InnerText = successMsg; 
 

Applies To

Web Services API for:

  • Hosted Messaging and Collaboration version 4.0

  • Hosted Messaging and Collaboration version 3.5

  • Windows-based Hosting version 4.5

  • Windows-based Hosting version 4.0

  • Windows-based Hosting for Applications version 1.0

See also

Tasks

Hosted CDI::ModifyOrganization
Hosted CDI::DisableOrganization