Chapter 17 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Experimenting with NOC authentication - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Chapter 17
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 408 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Experimenting with noc-authenticate.vbs
Now you are ready to use noc-autenticate.vbs to test the NOC authentication feature.
Retrieve noc-
authenticate.vbs
Retrieve noc-authenticate.vbs from \backend\vb and put it into a working folder.
You will also need cscript, which is a Microsoft tool that enables you to run VBScript
from the command line. If cscript is not installed on your system, go to the Microsoft site
and download it. It is part of Windows 2000 SP3.
Running the
program
The program runs from a command line session with the syntax:
cscript noc-authenticate.vbs "
CN3000_domain_name" "username" "password"
“
user_IP” “client certificate”
The program posts the information you specify to the following URL:
https://www.noc-cn3000.com:8090/goform/HtmlNocLoginRequest
The CN3000 will answer the post with the results of the RADIUS authentication. The
program will print these results so you can view them. For a complete description of all
possible return values, see
“Authentication results” on page 410
.
Examples
Example 1 - successful authentication
In this example, authentication is requested for a valid customer account that was
defined during creation of the backend sample with Login name = user and Password =
user.
cscript noc-authenticate.vbs "www.noc-cn3000.com" "user" "user" "192.168.1.10"
"LOCAL_MACHINE\Test-Only client certificate for demo"
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
result: 10
status: 100
url: https://206.162.167.226:8888/cebit-php/welcome.php?site=eperie-
cn3000&u
ser=user02&wantedurl=&nasipaddress=&nasid=L003-00069
session-url: http://192.168.1.1:8080/session.asp
Parameter
Description
CN3000_domain_name
Specify the domain name or IP address of the CN3000.
For this example, use the domain name
www.noc-
cn3000.com
.
usename
Specify the name of an existing user account.
password
Specify the password for the user account.
user_IP
Specify the the IP address of the client station you want
to grant access to
.
client_certificate
Specify the name of client certificate. For this example,
the name of the client certificate is
Test-Only client
certificate for demo.
This is the distinguished name that
was specified when the certificate
noc-client.pfx
was
created.
Summary of Contents for CN3000
Page 1: ...CN3000 Administrator s Guide...
Page 8: ...Table of Contents 8...
Page 60: ...Chapter 2 How it works Chapter 2 60...
Page 94: ...Chapter 4 Scenarios Chapter 4 94...
Page 106: ...Chapter 5 Activating the public access interface Chapter 5 106...
Page 211: ...Chapter 10 SSL certificates Chapter 10 211...
Page 292: ...Chapter 13 The configuration file Chapter 13 292...
Page 370: ...Chapter 16 Sample setup Microsoft RADIUS Chapter 16 370...
Page 396: ...Chapter 16 Sample setup Microsoft RADIUS Chapter 16 396...
Page 414: ...Chapter 17 Experimenting with NOC authentication Chapter 17 414...