DSI NETWORKS & SOLUTIONS
  Home     Forum  
Register   Login  
   Forum:
  Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
Advanced Tech Topics
 Forum-Advanced Tech Topics
Subject Topic: Rewriting Citrix WI5.0 client name length Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
raab
Admin Group
Admin Group

Crew

Joined: 30-January-2010
Location: New Zealand
Posts: 2

Online Status: Offline
Posted: 18-February-2010 at 09:23 | IP Logged Quote raab

We had a request from our client wanting to reduce/rewrite the client name for users going through CAG as there were compatibility
issues
with an application unable to handle the length of the default web interface client name.

This change can be made in the SessionUtils.java file which is located on the web interface servers.

Backup the file C:\inetpub\wwwroot\Citrix\XenApp\app_code\PagesJava\com\citr ix\wi\pageutils\SessionUtils.java. Open the original file
with notepad and go to line 208.

You should see the following:
deviceInfo.setClientName(clientName);
Replace that with:
//deviceInfo.setClientName(clientName);
String userID = accessToken.getShortUserName();
deviceInfo.setClientName("WI_" + (userID.length() > 10 ? userID.Substring(0,10) : userID));

Older versions of WI threw an exception if the length of the client name was greater than 20 which is why we check if the username is
greater than 10 characters and reducing the length.

The end result should be that the client name is now WI_username.

Credit to Sam Jacobs from the Citrix Forums for the above.
http://forums.citrix.com/message.jspa?messageID=1340855
Back to Top View raab's Profile Search for other posts by raab
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by Web Wiz Forums version 7.92
Copyright ©2001-2004 Web Wiz Guide
* Webmaster |  ©1999-2009 DSI NETWORKS & SOLUTIONS |  Site Launched: 21 Oct 2004
Powered By EzASPSite v2.0 RC3a