mergec ommit

This commit is contained in:
robvde 2013-09-16 16:24:05 +04:00
commit 93c2760d4a
17 changed files with 464 additions and 81 deletions

View file

@ -255,6 +255,18 @@ namespace WebsitePanel.Providers.HostedSolution
return ret != null ? ret.ToString() : string.Empty;
}
public static string GetCNFromADPath(string path)
{
string[] parts = path.Substring(path.ToUpper().IndexOf("CN=")).Split(',');
if (parts.Length > 0)
{
return parts[0].Substring(3);
}
return null;
}
public static string ConvertADPathToCanonicalName(string name)
{