Using backslash in variable names or when typing not working as expected

  • 7940147
  • 19-Aug-2009
  • 07-Jan-2014

Environment

SecureLogin
SecureLogin SSO
All Versions
MS AD, LDAP, NT4, Citrix, Terminal Services, Novell, eDirectory


Situation

Issue

SSO administrator is creating a script to SSO enable an application. They use a variable that includes both the Domain and the Username, separated by a backslash """" because the application requires it.

Type ""Domain\Username"" does not work but Domain@Username does enter correctly.

Data is not being entered as expected.

Resolution

Cause

The backslash is a special character and must be entered separately.

Solution

Use the type command (full list available in this knowledgebase) for the backslash key, as you should also do with other special characters. The following syntax is correct;

Type \

Type |220

Type -Raw |220

The following syntax is not correct (don’t need """");

Type ""|220""

Type -Raw ""|220""

For example, to type ""Domain\Username"" the customer had to store the variables individually and then use the following commands in the script:

Type $Domain

Type \

Type $Username