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