RDS Help desk computer group added

This commit is contained in:
vfedosevich 2015-02-25 01:39:59 -08:00
parent 18ff39ce08
commit 6139b499a9
16 changed files with 505 additions and 25 deletions

View file

@ -129,6 +129,9 @@
<data name="locEnableRedirection.Text" xml:space="preserve">
<value>Enable redirection for the following:</value>
</data>
<data name="locEncryptionLevel.Text" xml:space="preserve">
<value>Encryption Level</value>
</data>
<data name="locIdleSessionLimit.Text" xml:space="preserve">
<value>Idle session limit:</value>
</data>
@ -141,6 +144,9 @@
<data name="locPrinters.Text" xml:space="preserve">
<value>Printers</value>
</data>
<data name="locSecurityLayer.Text" xml:space="preserve">
<value>Security Layer</value>
</data>
<data name="locSessionLimitHeader.Text" xml:space="preserve">
<value>Set RD Session Host server timeout and reconnection settings for the session collection.</value>
</data>
@ -153,6 +159,9 @@
<data name="secRdsClientSettings.Text" xml:space="preserve">
<value>Client Settings</value>
</data>
<data name="secRdsSecuritySettings.Text" xml:space="preserve">
<value>Security Settings</value>
</data>
<data name="secRdsSessionSettings.Text" xml:space="preserve">
<value>Session Settings</value>
</data>

View file

@ -63,7 +63,22 @@ namespace WebsitePanel.Portal.RDS
}
RdsCollection collection = new RdsCollection{ Name = txtCollectionName.Text, DisplayName = txtCollectionName.Text, Servers = servers.GetServers(), Description = "" };
int collectionId = ES.Services.RDS.AddRdsCollection(PanelRequest.ItemID, collection);
int collectionId = ES.Services.RDS.AddRdsCollection(PanelRequest.ItemID, collection);
try
{
if (upPFX.HasFile.Equals(true))
{
byte[] pfx = upPFX.FileBytes;
string certPassword = txtPFXInstallPassword.Text;
//ES.Services.RDS.InstallSessionHostsCertificate(collectionId, pfx, certPassword);
}
}
catch(Exception ex)
{
messageBox.ShowErrorMessage("RDSSESSIONHOST_CERTIFICATE_NOT_INSTALLED", ex);
}
Response.Redirect(EditUrl("SpaceID", PanelSecurity.PackageId.ToString(), "rds_edit_collection", "CollectionId=" + collectionId, "ItemID=" + PanelRequest.ItemID));
}
catch (Exception ex)

View file

@ -175,6 +175,43 @@
</div>
</asp:Panel>
<wsp:CollapsiblePanel id="secRdsSecuritySettings" runat="server"
TargetControlID="panelRdsSecuritySettings" meta:resourcekey="secRdsSecuritySettings" Text="">
</wsp:CollapsiblePanel>
<asp:Panel runat="server" ID="panelRdsSecuritySettings">
<div style="padding: 10px;">
<table>
<tr>
<td class="Label" style="width:260px;"><asp:Localize ID="locSecurityLayer" runat="server" meta:resourcekey="locSecurityLayer" Text=""></asp:Localize></td>
<td style="width:250px;">
<asp:DropDownList ID="ddSecurityLayer" runat="server" CssClass="NormalTextBox">
<asp:ListItem Value="RDP" Text="RDP Security Layer" />
<asp:ListItem Value="Negotiate" Text="Negotiate" />
<asp:ListItem Value="SSL" Text="SSL (TLS 1.0)" />
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="Label" style="width:260px;"><asp:Localize ID="locEncryptionLevel" runat="server" meta:resourcekey="locEncryptionLevel" Text=""></asp:Localize></td>
<td style="width:250px;">
<asp:DropDownList ID="ddEncryptionLevel" runat="server" CssClass="NormalTextBox">
<asp:ListItem Value="Low" Text="Low" />
<asp:ListItem Value="ClientCompatible" Text="Client Compatible" />
<asp:ListItem Value="High" Text="High" />
<asp:ListItem Value="FipsCompliant" Text="FIPS Compliant" />
</asp:DropDownList>
</td>
</tr>
<tr>
<td colspan="2">
<asp:CheckBox ID="cbAuthentication" Text="Allow connections only from computers runnig Remote Desktop with Network Level Authentication" runat="server"/>
</td>
</tr>
</table>
</div>
</asp:Panel>
<div class="FormFooterClean">
<wsp:ItemButtonPanel id="buttonPanel" runat="server" ValidationGroup="SaveRDSCollection"
OnSaveClick="btnSave_Click" OnSaveExitClick="btnSaveExit_Click" />

View file

@ -43,7 +43,10 @@ namespace WebsitePanel.Portal.RDS
ClientPrinterRedirected = true,
ClientPrinterAsDefault = true,
RDEasyPrintDriverEnabled = true,
MaxRedirectedMonitors = 16
MaxRedirectedMonitors = 16,
EncryptionLevel = EncryptionLevel.ClientCompatible.ToString(),
SecurityLayer = SecurityLayerValues.Negotiate.ToString(),
AuthenticateUsingNLA = true
};
}
@ -89,6 +92,9 @@ namespace WebsitePanel.Portal.RDS
chEasyPrint.Checked = collection.Settings.RDEasyPrintDriverEnabled;
chEasyPrint.Enabled = collection.Settings.ClientPrinterRedirected;
tbMonitorsNumber.Text = collection.Settings.MaxRedirectedMonitors.ToString();
cbAuthentication.Checked = collection.Settings.AuthenticateUsingNLA;
ddSecurityLayer.SelectedValue = collection.Settings.SecurityLayer;
ddEncryptionLevel.SelectedValue = collection.Settings.EncryptionLevel;
}
private bool EditCollectionSettings()
@ -165,6 +171,9 @@ namespace WebsitePanel.Portal.RDS
}
settings.ClientDeviceRedirectionOptions = string.Join(",", redirectionOptions.ToArray());
settings.AuthenticateUsingNLA = cbAuthentication.Checked;
settings.SecurityLayer = ddSecurityLayer.SelectedItem.Value;
settings.EncryptionLevel = ddEncryptionLevel.SelectedItem.Value;
return settings;
}

View file

@ -354,6 +354,69 @@ namespace WebsitePanel.Portal.RDS {
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox tbMonitorsNumber;
/// <summary>
/// secRdsSecuritySettings control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::WebsitePanel.Portal.CollapsiblePanel secRdsSecuritySettings;
/// <summary>
/// panelRdsSecuritySettings control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Panel panelRdsSecuritySettings;
/// <summary>
/// locSecurityLayer control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Localize locSecurityLayer;
/// <summary>
/// ddSecurityLayer control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList ddSecurityLayer;
/// <summary>
/// locEncryptionLevel control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Localize locEncryptionLevel;
/// <summary>
/// ddEncryptionLevel control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList ddEncryptionLevel;
/// <summary>
/// cbAuthentication control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.CheckBox cbAuthentication;
/// <summary>
/// buttonPanel control.
/// </summary>

View file

@ -1,4 +1,5 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RDSCollectionApps.ascx.cs" Inherits="WebsitePanel.Portal.RDS.UserControls.RDSCollectionApps" %>
<%@ Import Namespace="WebsitePanel.Portal" %>
<%@ Register Src="../../UserControls/PopupHeader.ascx" TagName="PopupHeader" TagPrefix="wsp" %>
<asp:UpdatePanel ID="RDAppsUpdatePanel" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
@ -28,7 +29,13 @@
<asp:HiddenField ID="hfFilePath" runat="server" Value='<%# Eval("FilePath") %>'/>
<asp:HiddenField ID="hfRequiredCommandLine" runat="server" Value='<%# Eval("RequiredCommandLine") %>'/>
</ItemTemplate>
</asp:TemplateField>
</asp:TemplateField>
<asp:TemplateField>
<ItemStyle Width="20px" />
<ItemTemplate>
<asp:Image ID="UsersImage" ImageUrl='<%# PortalUtils.GetThemedImage("user_16.png")%>' runat="server" Visible='<%# Eval("Users") != null %>'/>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<br />