How to Customize the Domain Field for a XenDesktop 2.0 Desktop Appliance Connector Site

Citrix States:

How to Customize the Domain Field for a XenDesktop 2.0 Desktop Appliance Connector Site

Document ID: CTX117817   /   Created On: Jul 24, 2008   /   Updated On: Jul 28, 2008
Average Rating: not yet rated

productFamilyKey3 = "xd_wi"; topics3 = "Web Server Configuration"; productFamilyKey = productFamilyKey3.replace("/","--") + "/"; topics = topics3.replace("/","--") + "/";

Summary

This article describes how to specify a domain and optionally hide the domain field on the Desktop Appliance Connector Web Interface site for XenDesktop 2.0.

Requirements

You should be running XenDesktop 2.0. This document assumes that you have configured your XenDesktop environment and have a Citrix desktop appliance that uses the Desktop Appliance site for user authentication.

Background

XenDesktop 2.0 includes support for Citrix desktop appliances. These appliances connect into a special Desktop Appliance Connector Web Interface site that is created during the installation of the XenDesktop Desktop Delivery Controller.

Due to the special nature of this site, the ability to configure it through the Access Management Console Web Interface snap-in is not provided. The site comes preconfigured with the local Desktop Delivery Controller acting as the XML Broker to provide enumeration of any desktop groups.

By default, users who access the Desktop Appliance Connector site are presented with a logon form such as the one below:

This requires the end users to enter in their user names, passwords, and domains. In some environments, the users might not know their domain name or remember to type it in. This may generate unnecessary support calls to the help desk when users are unable to log on.

A solution to this issue would be to pre-populate the domain name and optionally, hide it from being displayed on the Desktop Appliance Connector logon page. This would normally be performed through the Access Management Console. As the Desktop Appliance Connector site is not intended to be modified easily, you must manually edit some files to achieve a logon page with the hidden domain field as shown below.

The procedure below can be used as a guide to modifying the relevant files so that this change can be implemented in your Desktop Appliance Connector site.

Procedure

1. Install XenDesktop 2.0 and configure it as needed (for example, create relevant desktop groups for user access).

2. Locate the lidpage.js file for the Desktop Appliance Web Interface site. Example file location: c:\inetpub\wwwroot\Citrix\DesktopAppliance\html\clientScripts\lidpage.js

3. Open the file in a text editor and locate the following section of code within the clearAllFields() function:

    $("#un").attr("value","");
    $("#pw").attr("value","");
    $("#dm").attr("value","");
    setDisabled($("#dm"), false);

4. Modify the #dm line (which is line 376 by default) so it reads as follows:

    $("#dm").attr("value","domain");

Where domain is the domain name you wish to authenticate your users against (for example, win2003ad).

5. Save the file.

This will now populate the domain name field with the specified domain when users access the Desktop Appliance Connector site. If you wish to also hide the domain field, complete the following procedure:

1. Locate the lidLogin.inc file for the DesktopAppliance Web Interface site. Example file location: c:\inetpub\wwwroot\Citrix\DesktopAppliance\app_data\include\lidLogin.inc

2. Open the file in a text editor and locate the following section of code:

        <tr>
          <td class="smallText">
             <span><%=wiContext.getString("Domain")%></span>
          </td>
          <td>
            <input title="<%=wiContext.getString("Domain")%>" tabindex="3" id="dm"
                   type="text" value="" maxlength="256" />
          </td>
        </tr>

Modify the section so it reads as follows (changes are in bold):

        <tr>
          <td class="smallText">
<!--             <span><%=wiContext.getString("Domain")%></span>  -->
          </td>
          <td>
            <input title="<%=wiContext.getString("Domain")%>" tabindex="3" id="dm"
                   type="hidden" 
value="" maxlength="256" />
          </td>
        </tr>

The changes are as follows:

Line 36 – Comment this line out so the "Domain" text is not shown.

Line 40 – Change the type attribute from text to hidden so that the field is not shown on the page.

3. Save the file.

4. Run the iisreset command or restart Internet Information Services (IIS) manually using the IIS Manager program or through the Services Microsoft Management Console (MMC) snap-in. This is required so that the lidLogin.inc page is updated within the IIS cache.

Users should now only be required to enter a user name and password when logging on to the Desktop Appliance Connector site.

Note: If you have multiple domain names, the procedure above does not work as it only populates a single domain name. Additional customizations in the files mentioned above might achieve this functionality.

More Information

CTX117567 – How to Install Web Interface on a Standalone Web Server

CTX117425 – How to Apply Customizations to Multiple Web Interface Sites


This document applies to:

  • Web Interface 5.0
  • XenDesktop 2.0 x64
  • XenDesktop 2.0 x32



Primary links

Custom Search

Who's new

  • japhabept
  • Rullydery
  • eagenorce
  • rittaarier
  • swasseZex

Who's online

There are currently 0 users and 3 guests online.

KrissysCorner.com RuthSwensonLaw.com CreativeLizardProductions.com

DISCLAIMER:

None of this has anything to do with us, someone else is responsible for the entire thing, and we have no idea who or why. We do not know anything about it. It may be alien life forms for all we know: we haven't a clue. You cannot blame us for anything that may result from your visit. That was entirely your own personal choice, made by you of your own volition, and without our knowledge. We do not, after all, have any control over you and cannot by any stretch of the imagination be expected to accept or acknowledge, be it legally or morally, any accountability for decisions made by you on an independent basis, utilizing your own free will, and without our intervention. We are therefore in no way, shape, or form answerable to anyone for any consequences arising from the aforementioned or indeed any other actions, similar or otherwise, because it was not us that did, or did not do anything. It is not even remotely our fault, and we are in no way prepared or willing to accept any liability, not even slightly, ever. We are, in fact completely and utterly blameless, in that it is definitely not our concern, and no blame can possibly be laid at our doorstep, even if we had one, the possession of which we hereby reserve as being entirely our own free choice. The onus is not on us at all, and furthermore, never has been. The entire matter is wholly beyond our control, and completely out of our hands, each of which are washed scrupulously clean of the whole business. We are not accountable for anything at all, and we hereby categorically deny all responsibility for all that has ever, or will ever happen. Our innocence is therefore wholly beyond doubt and absolutely unimpeachable, and so cannot, under even the remotest or unlikeliest circumstances, be brought into question. By clicking either on a link on this site, clicking on a link that leads to this site, or by arriving at this site by natural or supernatural means, you are in effect accepting responsibility for the fact that it is all entirely your own fault, down to the most miniscule detail, and that you are wholly accountable for whatever outcome may arise as a consequence of the aforementioned action or actions insofar as they were undertaken personally by you on an entirely voluntary basis and without any persuasion, coercion or influence from any party or parties other than yourself. Don't come sniveling to us, we are only figments of your imagination. I also agree that if I am ever with a contributor to this website during mealtimes I agree to pay for any super-sizing of their meal, or at least a nice dessert or one of those foo-foo drinks with an umbrella or a monkey. By admitting to have seen the worthless spineless drivel on this website (also known as content)

I Agree Wholeheartedly and Without Reservation to the above. (Except maybe for that part about the monkey.)

All Your Base Are Belong To Us.

Soylent Green Is People!

Never make a bet with a Sicilian when Death is on the Line!

No. Really, I do agree.