Article

dguest's picture
article
Reads:

6163

Score:
2
2
1
 
Comments:

1

NSL Script for the New Novell Login Screen

Author Info

1 April 2008 - 7:12am
Submitted by: dguest

(View Disclaimer)

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


Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

Elfstone2's picture

We came up with this alternative Site block...

Submitted by Elfstone2 on 3 April 2008 - 2:37pm.

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.

© 2013 Novell