diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/Common/Constants.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/Common/Constants.cs index c2e18285..56a981d0 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/Common/Constants.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/Common/Constants.cs @@ -62,6 +62,8 @@ namespace WebsitePanel.Providers.Common public const string EnterpriseServer = "EnterpriseServer"; + public const string EnterpriseServerFQDN = "EnterpriseServerFQDN"; + public const string AdministrationToolService = "AdministrationToolService"; diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/BlackBerry5Provider.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/BlackBerry5Provider.cs index 149fe1fb..13e5f563 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/BlackBerry5Provider.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/BlackBerry5Provider.cs @@ -72,11 +72,12 @@ namespace WebsitePanel.Providers.HostedSolution return res; } - string arguments = string.Format("-username {0} -password {1} -add -u {2} -b {3}", + string arguments = string.Format("-username {0} -password {1} -add -u {2} -b {3} -n {4}", User, Password, primaryEmailAddress, - EnterpriseServer); + EnterpriseServer, + EnterpriseServerFQDN); try { @@ -119,13 +120,14 @@ namespace WebsitePanel.Providers.HostedSolution return res; } - string arguments = string.Format(" -username {0} -password {1} -change -u {2} -b {3} -w {4} -wt {5}", + string arguments = string.Format(" -username {0} -password {1} -change -u {2} -b {3} -w {4} -wt {5} -n {6}", User, Password, primaryEmailAddress, EnterpriseServer, password, - time); + time, + EnterpriseServerFQDN); try { @@ -163,11 +165,12 @@ namespace WebsitePanel.Providers.HostedSolution return res; } - string arguments = string.Format("-username {0} -password {1} -change -u {2} -b {3} -cw", + string arguments = string.Format("-username {0} -password {1} -change -u {2} -b {3} -cw -n {4}", User, Password, primaryEmailAddress, - EnterpriseServer); + EnterpriseServer, + EnterpriseServerFQDN); try { @@ -214,11 +217,12 @@ namespace WebsitePanel.Providers.HostedSolution return res; } - string arguments = string.Format("-username {0} -password {1} -change -u {2} -b {3} -wrandom", + string arguments = string.Format("-username {0} -password {1} -change -u {2} -b {3} -wrandom -n {4}", User, Password, primaryEmailAddress, - EnterpriseServer); + EnterpriseServer, + EnterpriseServerFQDN); try { @@ -256,11 +260,12 @@ namespace WebsitePanel.Providers.HostedSolution return res; } - string arguments = string.Format("-username {0} -password {1} -kill_handheld -u {2} -b {3}", + string arguments = string.Format("-username {0} -password {1} -kill_handheld -u {2} -b {3} -n {4}", User, Password, primaryEmailAddress, - EnterpriseServer); + EnterpriseServer, + EnterpriseServerFQDN); try @@ -346,11 +351,12 @@ namespace WebsitePanel.Providers.HostedSolution return res; } - string arguments = string.Format(" -username {0} -password {1} -stats -u {2} -b {3}", + string arguments = string.Format(" -username {0} -password {1} -stats -u {2} -b {3} -n {4}", User, Password, primaryEmailAddress, - EnterpriseServer); + EnterpriseServer, + EnterpriseServerFQDN); string output; string error; @@ -421,11 +427,12 @@ namespace WebsitePanel.Providers.HostedSolution return res; } - string arguments = string.Format("-username {0} -password {1} -delete -u {2} -b {3}", + string arguments = string.Format("-username {0} -password {1} -delete -u {2} -b {3} -n {4}", User, Password, primaryEmailAddress, - EnterpriseServer); + EnterpriseServer, + EnterpriseServerFQDN); try { diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/BlackBerryProvider.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/BlackBerryProvider.cs index 1faf17e6..a1ea4d5f 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/BlackBerryProvider.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/BlackBerryProvider.cs @@ -74,7 +74,16 @@ namespace WebsitePanel.Providers.HostedSolution return ProviderSettings[Constants.EnterpriseServer]; } } - + + public string EnterpriseServerFQDN + { + get + { + return ProviderSettings[Constants.EnterpriseServerFQDN]; + } + } + + public ResultObject CreateBlackBerryUser(string primaryEmailAddress) { return CreateBlackBerryUserInternal(primaryEmailAddress); diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/BlackBerry5_Settings.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/BlackBerry5_Settings.ascx.resx index b51b235f..c488c21d 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/BlackBerry5_Settings.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/BlackBerry5_Settings.ascx.resx @@ -112,14 +112,17 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 BlackBerry Enterprise Server instance: + + BlackBerry Enterprise Server FQDN: + Authentication password: diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/BlackBerry5_Settings.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/BlackBerry5_Settings.ascx index 773eee53..517212cc 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/BlackBerry5_Settings.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/BlackBerry5_Settings.ascx @@ -31,4 +31,13 @@ + + + + + + + + + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/BlackBerry5_Settings.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/BlackBerry5_Settings.ascx.cs index ff0feb68..4a0ac4c6 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/BlackBerry5_Settings.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/BlackBerry5_Settings.ascx.cs @@ -32,7 +32,7 @@ using WebsitePanel.Providers.Common; namespace WebsitePanel.Portal.ProviderControls { - public partial class BlackBerry5_Settings: WebsitePanelControlBase, IHostingServiceProviderSettings + public partial class BlackBerry5_Settings : WebsitePanelControlBase, IHostingServiceProviderSettings { protected void Page_Load(object sender, EventArgs e) { @@ -44,6 +44,7 @@ namespace WebsitePanel.Portal.ProviderControls txtPath.Text = settings[Constants.UtilityPath]; txtPassword.Text = settings[Constants.Password]; txtEnterpriseServer.Text = settings[Constants.EnterpriseServer]; + txtEnterpriseServerFQDN.Text = settings[Constants.EnterpriseServerFQDN]; ViewState["PWD"] = settings[Constants.Password]; txtUser.Text = settings[Constants.UserName]; } @@ -52,6 +53,7 @@ namespace WebsitePanel.Portal.ProviderControls { settings[Constants.UtilityPath] = txtPath.Text; settings[Constants.EnterpriseServer] = txtEnterpriseServer.Text; + settings[Constants.EnterpriseServerFQDN] = txtEnterpriseServerFQDN.Text; settings[Constants.Password] = (txtPassword.Text.Length > 0) ? txtPassword.Text : (string)ViewState["PWD"]; settings[Constants.UserName] = txtUser.Text; } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/BlackBerry5_Settings.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/BlackBerry5_Settings.ascx.designer.cs index 3850090d..a17ad239 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/BlackBerry5_Settings.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/BlackBerry5_Settings.ascx.designer.cs @@ -1,10 +1,9 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.3053 // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. // //------------------------------------------------------------------------------ @@ -120,5 +119,32 @@ namespace WebsitePanel.Portal.ProviderControls { /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator3; + + /// + /// lblEnterpriseServerFQDN control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblEnterpriseServerFQDN; + + /// + /// txtEnterpriseServerFQDN control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtEnterpriseServerFQDN; + + /// + /// RequiredFieldValidator5 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator5; } }