Some lines might be wrapped, so make sure you download the raw text file at the bottom of the page.
Some customers would like to have one securid username and another login name - the following code allows this: The passcode is entered as passcode / Securidusername
Run a specific Publish Application (PA) in non-seamless mode while every other PA is still starting in seamless mode.
- Make a backup of the file Citrix\MetaFrame\site\include\serverscripts\launch.cs
- Near line 90 change the code from
if (bSize) {
DisplayMode = getCookie(NFuseCookie, COOKIE_MODE_WINDOW_TYPE);
TO THE FOLLOWING
if (bSize) {
DisplayMode = getCookie(NFuseCookie, COOKIE_MODE_WINDOW_TYPE);
if (gApp.urlEncode(ls.getAppName())=="Farm1x003aAccess") {
DisplayMode = "default";
}
NOTE You need the WI Farm and Published App (PA) name for it to work. In the previous example the WI Farm name is
Farm1 (default) and the PA name is
Access. For spaces in the PA name use
0020 as a replacement.
Make Web Interface 3.0 pass UPN names to RSA Server
by Jay Tomlin
Normal behavior is that the WI sends NO UPN names, like user@domain, to the RSA Server. This code change this behavior
- Make a backup first, then
- Find the following near line 37 of /Citrix/Metaframe/site/include/serverscripts/authentication.cs:
doNormalAuthentication = authenticateTwoFactor(shortUsername, shortDomain, passcode, clientId);
Change this line to the following:
doNormalAuthentication = authenticateTwoFactor(ExplicitUser, shortDomain, passcode, clientId);
- Save the file and changes take effect immediately.
NOTE
All changes are case-sensitive!
PrePopulate specific credentials
by Sam Jacobs
If you are an ASP and have a demo WI you might want to PrePopulate a specific Username and Password.
Web Interface 2.0
If you're using WI 2.x with explicit authentication, and you're NOT using NDS, backup the file: Citrix\MetaFrameXP\site\include\serverscripts\CHTMLLogin.vbs and open with notepad. At approx. line 129, you should see:
If Not page.isNDS Then Call box("text", "UserName", "user", 256) Call
box("password", "Password", "password", 254) If page.isShowDomain
Then
CHANGE TO:
If Not page.isNDS Then Call boxV("text", "UserName", "user", 256, "Demo")
Call boxV("password", "Password", "password", 254, "Demo")
If page.isShowDomain Then
Web Interface 3.0
Backup Citrix\MetaFrame\site\include\loginUPD.inc Open with notepad and at the top you should find:
<%
// loginUPD.inc
//
// Copyright (c) 2000 - 2004 Citrix Systems, Inc. All Rights Reserved.
%>
AFTER ADD:
<%
//
// if user/password is blank, pre-populate it
//
if (user == null || user == "") user = ExplicitUser;
if (password == null || password == "") password = ExplicitPassword;
%>
Automatically start in a published application folder
by Jay Tomlin
This is for users to be automatically dropped into an app folder after the Web Interface login.
- Make a backup of /Citrix/MetaFrame/site/include/serverscripts/applist.cs
- Then find the following code near line 98:
if (currentFolder == null) { currentFolder = ""; }
Put the desired folder name between the quotation marks, like this:
if (currentFolder == null) { currentFolder = "Microsoft Office Applications"; }
Display the (Full) Username after User login
by Didier Brageul
With this mod the (Full) Username can be displayed on the Welcome site. This customazation is for Web Interface 2.x
- Make a backup of /Citrix/MetaFrame/site/include/welcome.inc
- replace it with one of the files inclued in the zip file.
by Sam Jacobs
With this mod the (Full) Username can be displayed on the Welcome site. This customazation is for Web Interface 4.x
FullUserName_4.x.zip