Technical Tip

NSL Script for the New Novell Login Screen

Author Info

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

tip
Reads:

1287

Score:
2
2
1
 
Comments:

1

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


Author Info

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




User Comments

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.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <p> <a> <em> <i> <cite> <code> <img> <ul> <ol> <li> <div> <dl> <dt> <dd> <b> <strong> <h1> <h2> <h3> <pre> <table> <td> <tr> <th> <blockquote>
  • Lines and paragraphs break automatically.
  • Glossary terms will be automatically marked with links to their descriptions. If there are certain phrases or sections of text that should be excluded from glossary marking and linking, use the special markup, [no-glossary] ... [/no-glossary]. Additionally, these HTML elements will not be scanned: a, abbr, acronym, code, pre.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
9 + 6 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

© 2008 Novell, Inc. All Rights Reserved.