raab Admin Group

Crew
Joined: 30-January-2010 Location: New Zealand Posts: 2
Online Status:
|
| Posted: 18-February-2010 at 09:23 | IP Logged
|
|
|
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
|