MERGE: buildtoolsv1 vs. main
This commit is contained in:
commit
2b45a5d223
330 changed files with 10414 additions and 2877 deletions
|
@ -1,11 +1,11 @@
|
|||
Windows Registry Editor Version 5.00
|
||||
Windows Registry Editor Version 5.00
|
||||
|
||||
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog\MEACPTransportAgent]
|
||||
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog\WSPTransportAgent]
|
||||
"MaxSize"=dword:00080000
|
||||
"AutoBackupLogFiles"=dword:00000000
|
||||
"Retention"=dword:00000000
|
||||
|
||||
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog\MEACPTransportAgent\MEACPTransportAgent]
|
||||
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog\WSPTransportAgent\WSPTransportAgent]
|
||||
"EventMessageFile"=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,\
|
||||
00,73,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,2e,00,\
|
||||
4e,00,45,00,54,00,5c,00,46,00,72,00,61,00,6d,00,65,00,77,00,6f,00,72,00,6b,\
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
WSP Transport Agent Installation
|
||||
================================
|
||||
|
||||
Perform the following steps:
|
||||
|
||||
A) Copy the files WSPTransportAgent.dll and WSPTransportAgent.dll.config to "C:\Program Files\Microsoft\Exchange Server\V14\Public"
|
||||
B) Import the WSPTransportAgent.reg to create the event source
|
||||
C) Use the registry editor and provide the "NETWORK SERVICE" Full Control on the following Key
|
||||
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog\WSPTransportAgent
|
||||
D) Run the following powershell command in the exchange management shell:
|
||||
Install-TransportAgent "WSPTransportAgent" -TransportAgentFactory WSPTransportAgent.WSPRoutingAgentFactory -AssemblyPath "C:\Program Files\Microsoft\Exchange Server\V14\Public\WSPTransportAgent.dll"
|
||||
E) Enable-TransportAgent "WSPTransportAgent"
|
||||
F) Restart-Service MSExchangeTransport
|
|
@ -100,6 +100,7 @@ namespace WebsitePanel.Import.Enterprise
|
|||
Global.TempDomain = serviceSettings["TempDomain"];
|
||||
ServerInfo serverInfo = ServerController.GetServerById(serviceInfo.ServerId);
|
||||
Global.ADRootDomain = serverInfo.ADRootDomain;
|
||||
Global.NetBiosDomain = ActiveDirectoryUtils.GetNETBIOSDomainName(Global.ADRootDomain);
|
||||
}
|
||||
|
||||
private void OnBrowseOU(object sender, EventArgs e)
|
||||
|
|
|
@ -58,6 +58,13 @@ namespace WebsitePanel.Import.Enterprise
|
|||
set { aDRootDomain = value; }
|
||||
}
|
||||
|
||||
private static string netBiosDomain;
|
||||
public static string NetBiosDomain
|
||||
{
|
||||
get { return netBiosDomain; }
|
||||
set { netBiosDomain = value; }
|
||||
}
|
||||
|
||||
public static PackageInfo Space;
|
||||
public static string TempDomain;
|
||||
|
||||
|
|
|
@ -757,15 +757,19 @@ namespace WebsitePanel.Import.Enterprise
|
|||
if (EmailAddressExists(email))
|
||||
return BusinessErrorCodes.ERROR_EXCHANGE_EMAIL_EXISTS;
|
||||
|
||||
|
||||
|
||||
if (AccountExists(accountName))
|
||||
throw new Exception(string.Format("Account {0} already exists", accountName));
|
||||
|
||||
string displayName = (string)entry.Properties["displayName"].Value;
|
||||
|
||||
string samName = (string)entry.Properties["sAMAccountName"].Value;
|
||||
// this should really NEVER happen - an AD account without sAMAccountName?!
|
||||
if (string.IsNullOrEmpty(samName))
|
||||
throw new Exception("SAMAccountName is not specified");
|
||||
// add Netbios-Domainname before samAccountName - format in the database
|
||||
samName = Global.NetBiosDomain + "\\" + samName;
|
||||
|
||||
int userId = AddOrganizationUser(itemId, accountName, displayName, email, string.Empty);
|
||||
int userId = AddOrganizationUser(itemId, accountName, displayName, email, samName, string.Empty);
|
||||
AddAccountEmailAddress(userId, email);
|
||||
|
||||
//account type
|
||||
|
@ -796,7 +800,7 @@ namespace WebsitePanel.Import.Enterprise
|
|||
return userId;
|
||||
}
|
||||
|
||||
UpdateExchangeAccount(userId, accountName, accountType, displayName, email, false, string.Empty, string.Empty, string.Empty);
|
||||
UpdateExchangeAccount(userId, accountName, accountType, displayName, email, false, string.Empty, samName, string.Empty);
|
||||
|
||||
string defaultEmail = (string)entry.Properties["extensionAttribute3"].Value;
|
||||
|
||||
|
@ -847,7 +851,7 @@ namespace WebsitePanel.Import.Enterprise
|
|||
if (email != null && email.ToLower().StartsWith("smtp:"))
|
||||
email = email.Substring(5);
|
||||
|
||||
|
||||
// no sAMAccountName for contacts - so String.Empty is OK
|
||||
int accountId = AddAccount(itemId, ExchangeAccountType.Contact, accountName, displayName, email, false, 0, string.Empty, null);
|
||||
|
||||
Log.WriteEnd("Contact imported");
|
||||
|
@ -886,7 +890,14 @@ namespace WebsitePanel.Import.Enterprise
|
|||
if (EmailAddressExists(email))
|
||||
return BusinessErrorCodes.ERROR_EXCHANGE_EMAIL_EXISTS;
|
||||
|
||||
int accountId = AddAccount(itemId, ExchangeAccountType.DistributionList, accountName, displayName, email, false, 0, string.Empty, null);
|
||||
string samName = (string)entry.Properties["sAMAccountName"].Value;
|
||||
// this should really NEVER happen - an AD group without sAMAccountName?!
|
||||
if (string.IsNullOrEmpty(samName))
|
||||
throw new Exception("SAMAccountName is not specified");
|
||||
// add Netbios-Domainname before samAccountName - format in the database
|
||||
samName = Global.NetBiosDomain + "\\" + samName;
|
||||
|
||||
int accountId = AddAccount(itemId, ExchangeAccountType.DistributionList, accountName, displayName, email, false, 0, samName, null);
|
||||
AddAccountEmailAddress(accountId, email);
|
||||
|
||||
string defaultEmail = (string)entry.Properties["extensionAttribute3"].Value;
|
||||
|
@ -938,10 +949,10 @@ namespace WebsitePanel.Import.Enterprise
|
|||
mailboxManagerActions.ToString(), samAccountName, CryptoUtils.Encrypt(accountPassword),0, string.Empty);
|
||||
}
|
||||
|
||||
private static int AddOrganizationUser(int itemId, string accountName, string displayName, string email, string accountPassword)
|
||||
private static int AddOrganizationUser(int itemId, string accountName, string displayName, string email, string samAccountName, string accountPassword)
|
||||
{
|
||||
return DataProvider.AddExchangeAccount(itemId, (int)ExchangeAccountType.User, accountName, displayName, email, false, string.Empty,
|
||||
string.Empty, CryptoUtils.Encrypt(accountPassword),0 , string.Empty);
|
||||
samAccountName, CryptoUtils.Encrypt(accountPassword), 0 , string.Empty);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue