NSL Script for the New Novell Login Screen

Absent Member.
Absent Member.
0 1 3,291
0 Likes

Problem



A Forum reader recently asked:

"Has anyone succeeded in doing an NSL script for new Novell Login screen on the Novell web site?"

And here is the response from David Guest ...

Solution



It works as a web wizard for me - try this:


# ==============================================================
# ===== Check that page hasnt been discarded already
# ==============================================================
If -SiteDeparted
EndScript "ABORT"
EndIf


# ===========================
# ===== Login Script #1 - Novell Login
# ===========================


# === Initial Login ===
Site Login -initial
MatchDomain "secure-www.novell.com"
MatchForm #1 -name ""
MatchField #1:1 -name "username" -type "text"
MatchField #1:2 -name "password" -type "password"
MatchField #1:3 -name "nlogin_submit_btn" -type "submit"
EndSite


TextInput #1:1 -value "$Username"
TextInput #1:2 -value "$Password"
FocusInput #1:2 -focus "true"
PressInput
SetPrompt "Enter login credentials"
EndScript

# === Error logging in ===
Site Login -recent 5000
MatchDomain "secure-www.novell.com"
MatchForm #1 -name ""
MatchField #1:1 -name "username" -type "text"
MatchField #1:2 -name "password" -type "password"
MatchField #1:3 -name "nlogin_submit_btn" -type "submit"
EndSite

DisplayVariables "Login failed. Confirm your credentials are correct."
TextInput #1:1 -value "$Username"
TextInput #1:2 -value "$Password"
FocusInput #1:2 -focus "true"
PressInput
EndScript

1 Comment
Absent Member.
Absent Member.
Site Login -userid "Novell.com" -initial
MatchTitle "Novell Login"
MatchForm #1 -name ""
MatchField #1:1 -name "username" -type "text"
MatchField #1:2 -name "password" -type "password"
EndSite



... MatchTitle just seems a little "tighter" than a MatchDomain since other forms may come from it.
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.