internal String GetConfigEntry(String entry) { switch (entry) { case "CAServerName": return(ComputerName); case "ServerShortName": return(ComputerName.Split('.')[0]); case "CommonName": return(Name); case "CATruncatedName": return(DsUtils.GetSanitizedName(Name)); case "ConfigurationContainer": return((String)CryptoRegistry.GetRReg("DSConfigDN", Name, ComputerName)); default: return(String.Empty); } }
internal String GetConfigEntry(String entry) { switch (entry) { case "CAServerName": return(ComputerName); case "ServerShortName": return(ComputerName.Split('.')[0]); case "CommonName": return(Name); case "CATruncatedName": return(DsUtils.GetSanitizedName(Name)); case "ConfigurationContainer": _regReader.SetRootNode(true); return(_regReader.GetStringEntry("DSConfigDN")); default: return(String.Empty); } }