NTAccess.RAS Readme

NTAccess.RAS : An ASP Component for NT RAS Server management
Version : 1.1
Release Date : 4 June 98
Copyright (c) 1998 by Simon Fell. All rights reserved.
Contact:
email : Simon Fell
WWW : Zaks Solutions Web Site

If you have any problems using this component please report it.

Description
NTAccess.RAS allows for the modification of user's RAS permissions, and for the monitoring of RAS server ports.

Installation Instructions
To use this ASP component move the DLL into a sub directory (like \winnt\system32\inetsrv\asp\Cmpnts or \winnt\system32) and run (from the directory copied to)

regsvr32 nta_ras.dll
If you are replacing an earlier version, remember to shutdown & restart IIS to reload the new version.

License Agreement
NTAccess.RAS is copyright (C) 1998 by Simon Z. Fell

NTAccess.RAS is currently free to download and use. You may NOT redistribute the package through BBS, Internet, FTP sites or by any other means without written permission from the Author.
You are prohibited from:
charging a fee or requesting donations for the package;
distributing/including the package in commercial products or for commercial gain (without a commercial license );
modifying the package.

All trademarks/registered names acknowledged.

NTAccess.RAS is provided as is, without warranty of any kind. The author shall not be liable for damages of any kind. Use of this software indicates you agree to this.

How To Use
A set of example ASP scripts are included in the download

Object Properties / Methods
All the code snippets assume that
set ntr = Server.CreateObject("NTAccess.RAS")
has already been called.
  • Property : Server : The UNC Name of the server holding the user accounts, normally the Primary Domain Controller (PDC), but doesn't have to be.
    Examples
    ntr.Server = ""
    ntr.Server = "\\RAS_Server"
    ntr.Server = "\\PDC_Server"
  • Property : User : The name of the user account to perform any functions on. The Server and User properties must be set before any other functions can be called.
    Examples
    ntr.User = "Administrator"
    ntr.User = "WebUser1"
    ntr.User = REQUEST("LOGON_USER") 
  • Property : DialIn : This is a boolean property relating to dialin access permission.
    Examples
    if ntr.DialIn then
    	response.write "You have dialin access granted"
    end if
    ntr.dialin = false
    ntr.dialin = true
  • Property : CallBackType : This property reads / sets the type of callback set for the user, either no callback, admin set callback, or user set callback.
    Examples
    ntr.CallBackType = 1 ' No Callback
    ntr.CallBackType = 2 ' Admin Set Callback
    ntr.CallBackType = 4 ' User Set Callback
  • Property : Callback : This hold the callback telephone number for when admin set call back is selected.
    Examples
    response.write "Current Callback Number : " & ntr.callback
    ntr.Callback = "11 22 33 445566"
  • Function : Ports : This returns a collection of port objects, each containing information for a specific RAS Port.
    Example
    For Each Port in ntr.Ports
    	response.write port.PortName & ", "
    	response.write port.UserName & ", "
    	response.write Port.ConnectedAt
    next
  • Object : Port : The port object contains a set of properties to indicate the current status of the RAS Port, the properties are
    • PortName
    • DeviceName
    • DeviceType
    • MediaName
    • ConnectedAt
    • UserName
    • Computer
    • LogonDomain
    • IP
    • Disconnect (Disconnects this port)

Last Updated : Thursday, June 04, 1998
(C) 1997 - 1999 Simon Fell, All rights reserved