Background Information
By default, the Desktop Director logon page displays three fields: User name, Password and Domain.
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"
Insert your domain name as shown:
<asp:Textbox ID=”Domain” ... >MYDOMAIN.COM</asp:TextBox>
Save the file and reload your Director logon page. If you did everything correctly, the page should now contain a pre-populated Domain Textbox
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"
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'>
Add the following before <div class=’label eight’>:
<div style=’display:none’>
Inbetween “</asp:Textbox> <br />” add the following:
</div>
And the resulting logon page should look like this: