Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 internal static ADObjectId GetRootOrgContainerId(string domainController, NetworkCredential credential)
 {
     return(ADSystemConfigurationSession.GetRootOrgContainerId(TopologyProvider.LocalForestFqdn, domainController, credential));
 }
Ejemplo n.º 3
0
 internal static ADObjectId GetRootOrgContainerIdForLocalForest()
 {
     return(ADSystemConfigurationSession.GetRootOrgContainerId(TopologyProvider.LocalForestFqdn, null, null));
 }