fixed bugs

This commit is contained in:
vfedosevich 2013-09-10 18:02:41 +03:00
parent 9dbbd48313
commit ba708deb3a
8 changed files with 265 additions and 71 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)
{