How to Append the Domain Name to a Username in SecureLogin script

  • 7011707
  • 25-Jan-2013
  • 01-Feb-2013

Environment

NSL7.0.x
SecureLogin Application Definition Wizard

Situation

How to include the domain name in a SecureLogin application definition
How to modify script to use the user and domain instead of just the username
How to manually edit a definition created by SecureLogin Wizard
Login name needs to include the domain name, e.g. user/domain

Resolution

Convert the application definition to text format and edit.  Use the the StrCat command.
 
Steps:
1. In manage logins, go to the definition tab for the application and click the button to “Convert to Application Definition.”
 
2. Locate and edit the line where the password is entered. It will look something like the following:
                 
 
3. Insert the “StrCat” command into the script.
                         Syntax should be:   StrCat <Variable> <Input-String1> <Input-String2>
 
StrCat creates a new variable from two input strings. Either or both of the input strings can be variables themselves. Example of a new variable that includes the domain:
              StrCat ?newvariable $username “/mydomain”
 
4. Edit the “Type” command that enters the user name to enter ?newvariable instead $Username.