Desktop Director – Pre-populating, disabling and hiding the Domain Textbox

Background Information

By default, the Desktop Director logon page displays three fields: User name, Password and Domain.

Default Logon Page

Default Logon Page

In some use cases, it may be beneficial to pre-populate the Domain Textbox, disable changes or even hide it altogether. Please note that the following modifications are for usability only, none of these constitute a security feature. You must use the Citrix Studio to secure Director.

Preparation

All modifications are made within the “LogOn.aspx” file, which is located in the “Director”directory of the IIS server where Desktop Director is installed. By default, this location is:

C:\inetpub\wwwroot\Director\LogOn.aspx

Make a copy of “LogOn.aspx” and rename it to “LogOn.aspx.bak”

If the server is using UAC, launch Notepad by right clicking and selecting “Run as Administrator” and then open the file (NB: Drag and drop won’t work, you must browse to the file).

If the sever isn’t running UAC, open the file as normal using Notepad.

Pre-Populating the Domain Textbox

Locate the line beginning with:

<asp:TextxBox ID="Domain"
LogOn.aspx

LogOn.aspx

Insert your domain name as shown:

<asp:Textbox ID=”Domain” ... >MYDOMAIN.COM</asp:TextBox>
Added Domain

Added Domain

Save the file and reload your Director logon page. If you did everything correctly, the page should now contain a pre-populated Domain Textbox

Pre-populated Domain

Pre-populated Domain

Making the Domain Textbox Read-Only

You may want to prevent users from altering the text in the Domain textbox. If you do this, then you must pre-populate it first as explained previously.

Locate the tag which starts with:

<asp:TextxBox ID="Domain"

And change it, by adding ReadOnly=”True”

<asp:TextBox ID=”Domain” ReadOnly="True"
Read-only Domain

Read-only Domain

The logon page will look identical, but the Domain box will be Read-Only.

Hiding The Domain Textbox

As above, if you wish to hide the Domain textbox completely, ensure you have pre-populated it.

Locate the tag which starts with:

<asp:Label ID="DomainLabel"

Immediately prior to that label, locate the following tag:

<div class='label eight'>

Locate the <Div> Tag

Add the following before <div class=’label eight’>:

<div style=’display:none’>

Inbetween “</asp:Textbox> <br />” add the following:

 </div>
Hide Code

Hide Code

And the resulting logon page should look like this:

Hidden Domain Textbox

Hidden Domain Textbox

 
Share

3 thoughts on “Desktop Director – Pre-populating, disabling and hiding the Domain Textbox

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.