internal override Fqdn PreferredGlobalCatalog(string partitionFqdn)
        {
            Fqdn fqdn = this.userPreferredGlobalCatalog;

            if (fqdn != null && ADServerSettings.IsServerNamePartitionSameAsPartitionId(fqdn, partitionFqdn))
            {
                return(fqdn);
            }
            return(base.PreferredGlobalCatalog(partitionFqdn));
        }
        internal override Fqdn ConfigurationDomainController(string partitionFqdn)
        {
            Fqdn fqdn = this.userConfigurationDomainController;

            if (fqdn != null && ADServerSettings.IsServerNamePartitionSameAsPartitionId(fqdn, partitionFqdn))
            {
                return(fqdn);
            }
            return(base.ConfigurationDomainController(partitionFqdn));
        }
 // Token: 0x060000DB RID: 219 RVA: 0x000048A8 File Offset: 0x00002AA8
 protected void CheckDomainControllerParameterConsistency(string dcName)
 {
     if (!string.IsNullOrEmpty(dcName) && this.SessionSettings.PartitionId != null)
     {
         string forestFQDN = this.SessionSettings.PartitionId.ForestFQDN;
         if (!ADServerSettings.IsServerNamePartitionSameAsPartitionId(dcName, forestFQDN))
         {
             throw new DomainControllerFromWrongDomainException(DirectoryStrings.WrongDCForCurrentPartition(dcName, forestFQDN));
         }
     }
 }