fixed bugs
This commit is contained in:
parent
9dbbd48313
commit
ba708deb3a
8 changed files with 265 additions and 71 deletions
|
@ -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)
|
||||
{
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue