Exemple #1
0
 public ADObjectId GetOrgContainerId()
 {
     if (this.orgContainerId != null)
     {
         return(this.orgContainerId);
     }
     if (Globals.IsDatacenter && (base.SessionSettings.ConfigReadScope == null || base.SessionSettings.ConfigReadScope.Root == null))
     {
         this.orgContainerId = ADSystemConfigurationSession.GetRootOrgContainerId(base.SessionSettings.GetAccountOrResourceForestFqdn(), base.DomainController, base.NetworkCredential);
     }
     if (this.orgContainerId == null)
     {
         Organization orgContainer = this.GetOrgContainer();
         this.orgContainerId = orgContainer.Id;
     }
     return(this.orgContainerId);
 }
Exemple #2
0
 internal static ADObjectId GetRootOrgContainerId(string domainController, NetworkCredential credential)
 {
     return(ADSystemConfigurationSession.GetRootOrgContainerId(TopologyProvider.LocalForestFqdn, domainController, credential));
 }
Exemple #3
0
 internal static ADObjectId GetRootOrgContainerIdForLocalForest()
 {
     return(ADSystemConfigurationSession.GetRootOrgContainerId(TopologyProvider.LocalForestFqdn, null, null));
 }