SecureLogin Wizard does not detect IDM UserApp password change page

  • 7010907
  • 10-Oct-2012
  • 10-Oct-2012

Environment

SecureLogin Wizard does not detect password change page in IDM User App

Resolution

Implement the script below as follows:
 
1.  Go into "Manage Logins" on an NSL workstation, or into the applications page in your directory administration tool
2.  Right click on "applications" and select new,
3.  In the "Type" drop down box select "Web Wizard Script"
4.  Enter the URL for the User App login page, enter a description, click OK
5.  Click the "definition" tab and copy in the script below.
 
Note that for this to work with IE you need to have DHTML set in your registry.  Create a dword called WEBSSO_DHTML and set it to 1 under  HKEY_LOCAL_MACHINE\SOFTWARE\Protocom\SecureLogin. 
 
Script: 
 

#=============================================================
# EXE/ID:  151.155.213.250
# Name:   jquery
# Type:   Web (Type Web Wizard, but manually created)
# Version:  1
# Created By: dsailesh
#=============================================================
## BeginSection: "Login Form"
Site "jquery" -initial
MatchForm #1 -name "loginForm"
MatchField #1:3 -type "text" -name "userName"
MatchField #1:4 -type "password" -name "password"
MatchField #1:5 -type "submit" -name "login"
EndSite
SetPrompt "                                                                                        Username:                                                                                "
FocusInput #1:3
TextInput #1:3 -value "$username"
SetPrompt "                                                                                        Password:                                                                                "
FocusInput #1:4
TextInput #1:4 -value "$password"
SetPrompt "Please edit your login variables."
FocusInput #1:5
PressInput #1:5
EndScript
## EndSection: "Login Form"

## BeginSection: "Login Form"
Site "jquery" -recent 5000
MatchForm #1 -name "loginForm"
MatchField #1:3 -type "text" -name "userName"
MatchField #1:4 -type "password" -name "password"
MatchField #1:5 -type "submit" -name "login"
EndSite
if -exists $username
 Displayvariables  $username $password
Endif
SetPrompt "                                                                                        Username:                                                                                "
FocusInput #1:3
TextInput #1:3 -value "$username"
SetPrompt "                                                                                        Password:                                                                                "
FocusInput #1:4
TextInput #1:4 -value "$password"
SetPrompt "Please edit your login variables."
FocusInput #1:5
PressInput #1:5
EndScript
## EndSection: "Login Form"

## BeginSection: "Login Form"
Site "jquery" -subsequent
MatchForm #1 -name "loginForm"
MatchField #1:3 -type "text" -name "userName"
MatchField #1:4 -type "password" -name "password"
MatchField #1:5 -type "submit" -name "login"
EndSite
MessageBox "Do you wish to re-login?" -YesNo ?Result -DefaultNo
If ?Result Eq "No"
 EndScript
EndIf
SetPrompt "                                                                                        Username:                                                                                "
FocusInput #1:3
TextInput #1:3 -value "$username"
SetPrompt "                                                                                        Password:                                                                                "
FocusInput #1:4
TextInput #1:4 -value "$password"
SetPrompt "Please edit your login variables."
FocusInput #1:5
PressInput #1:5
EndScript
## EndSection: "Login Form"
## BeginSection: "Login Form Subroutines"
## EndSection: "Login Form Subroutines"
## BeginSection: "Change Password Form"
Site "Change Password" -initial -events create
MatchForm #1 -noform
MatchField #1:1 -type "password"
MatchField #1:2 -type "password"
MatchField #1:3 -type "password"
EndSite

ReLoadPlat
ChangePassword ?passwordnew "Enter"
#MessageBox "Initial"
SetPrompt "                                                                                        Password:                                                                                "
FocusInput #1:1
TextInput #1:1 -value "$password"
SetPrompt "passwordnew"
FocusInput #1:2
TextInput #1:2 -value "?passwordnew"
SetPrompt "passwordnew"
FocusInput #1:3
TextInput #1:3 -value "?passwordnew"
SetPrompt "Please edit your login variables."
#MessageBox "Initial"
Type -raw \t
Type -raw \n  
Set ?LastChangePassTime ?CurrTime(system)
MessageBox "Has the password been successfully changed?" -YesNo ?ChangeResult
If ?ChangeResult Eq "Yes"
 Set $password ?passwordnew
EndIf
EndScript
## EndSection: "Change Password Form"

## BeginSection: "Change Password Form"
Site "Change Password" -recent 5000 -events create
MatchForm #1 -noform
MatchField #1:1 -type "password"
MatchField #1:2 -type "password"
MatchField #1:3 -type "password"
EndSite

ReLoadPlat
MessageBox "Do you wish to re-try the change password?" -YesNo ?Result -DefaultNo
If ?Result Eq "No"
 EndScript
EndIf
#MessageBox "Recent"
ChangePassword ?passwordnew "Enter"
SetPrompt "                                                                                        Password:                                                                                "
FocusInput #1:1
TextInput #1:1 -value "$password"
SetPrompt "passwordnew"
FocusInput #1:2
TextInput #1:2 -value "?passwordnew"
SetPrompt "passwordnew"
FocusInput #1:3
TextInput #1:3 -value "?passwordnew"
SetPrompt "Please edit your login variables."
Type -raw \t
Type -raw \n
Set ?LastChangePassTime ?CurrTime(system)
MessageBox "Has the password been successfully changed?" -YesNo ?ChangeResult
If ?ChangeResult Eq "Yes"
 Set $password ?passwordnew
EndIf
EndScript
## EndSection: "Change Password Form"

## BeginSection: "Change Password Form"
Site "Change Password" -subsequent -events create
MatchForm #1 -noform
MatchField #1:1 -type "password"
MatchField #1:2 -type "password"
MatchField #1:3 -type "password"
EndSite
ReLoadPlat
ChangePassword ?passwordnew "Enter"
#MessageBox "Subsequent"
SetPrompt "                                                                                        Password:                                                                                "
FocusInput #1:1
TextInput #1:1 -value "$password"
SetPrompt "passwordnew"
FocusInput #1:2
TextInput #1:2 -value "?passwordnew"
SetPrompt "passwordnew"
FocusInput #1:3
TextInput #1:3 -value "?passwordnew"
SetPrompt "Please edit your login variables."
Type -raw \t
Type -raw \n
Set ?LastChangePassTime ?CurrTime(system)
MessageBox "Has the password been successfully changed?" -YesNo ?ChangeResult
If ?ChangeResult Eq "Yes"
 Set $password ?passwordnew
EndIf
EndScript
## EndSection: "Change Password Form"
## BeginSection: "Change Password Form Subroutines"
## EndSection: "Change Password Form Subroutines"