Configuration manual

66 Chapter 3 WAN and Dial Backup Setup
NN47922-501
Editing logon script
For some remote gateways, text logon is required before PPP negotiation is
started. The Business Secure Router provides a script facility for this purpose. The
script has six programmable sets; each set is composed of an Expect string and a
‘Send’ string. After matching a message from the server to the ‘Expect’ field, the
Business Secure Router returns the set’s Send string to the server.
For instance, a typical logon sequence starts with the server printing a banner, a
logon prompt for you to enter the username and a password prompt to enter the
password:
Welcome to Acme, Inc.
Login: myLogin
Password:
To handle the first prompt, you specify ogin: as the Expect string and myLogin as
the Send string in set 1. The reason for leaving out the leading L is to avoid having
to know exactly whether it is upper or lower case. Similarly, you specify word: as
the Expect string and your password as the Send string for the second prompt in
set 2.
You can use two variables, $USERNAME and $PASSWORD (all upper case), to
represent the actual username and password in the script, so they do not show in
clear text. They are replaced with the outgoing login name and password in the
remote node when the Business Secure Router sees them in a ‘Send’ string. Note
that both variables must be entered exactly as shown. No other characters can
appear before or after, either, i.e., they must be used alone in response to logon
and password prompts.
Note that the ordering of the sets is significant, i.e., starting from set 1, the
Business Secure Router waits until the ‘Expect’ string is matched before it
proceeds to set 2, and so on for the rest of the script. When both the ‘Expect’ and
the ‘Send’ fields of the current set are empty, the Business Secure Router
terminates the script processing and start PPP negotiation. This implies two
things: first, the sets must be contiguous; the sets after an empty one are ignored.
Second, the last set must match the final message sent by the server. For instance,
if the server prints: