Fixed:
Could not add contacts to a distribution lists Create mailbox: room and equipment showed as numbers Create Hosting Space: alignment of the hostname textbox Webpointers: blank hostname did not register as dns alias Webpublishing: generation of user name, username was not showing domain part BackupWizard: ensured progress bar is at 100% when task is completed Change mailbox plan did not update the size indicator setup instruction tab is shown when there is no setup template
This commit is contained in:
parent
bc0d70d1a4
commit
448429a5d2
13 changed files with 80 additions and 50 deletions
|
@ -918,7 +918,16 @@ namespace WebsitePanel.Providers.Utils
|
|||
|
||||
private static string GetUserName(string userName, RemoteServerSettings serverSettings)
|
||||
{
|
||||
return userName.Replace(serverSettings.ADRootDomain + "\\", "");
|
||||
if (userName.Contains("\\"))
|
||||
{
|
||||
string[] tmp = userName.Split('\\');
|
||||
if (tmp.Length > 1)
|
||||
return tmp[1];
|
||||
else
|
||||
return tmp[0];
|
||||
}
|
||||
else
|
||||
return userName;
|
||||
}
|
||||
|
||||
private static DirectoryEntry GetUserObject(DirectoryEntry objRoot, string userName,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue