Unit ESBNDSIO

Classes

Functions

GetNDSTypelessName -
NWCallsInit -
NWCCGetConnInfo -
NWCCGetPrimConnRef - Returns True if Valid Password is given.
NWCCOpenConnByRef -
NWDSCreateContext -
NWDSGetContext -
NWDSSetContext -
NWDSVerifyObjectPassword -
NWDSWhoAmI -
VerifyNDSPassword - Returns the current User's name qualified but without types

Types

NWCCode
NWConnHandle
NWConnNum
NWDSContextHandle
pNWConnHandle

Constants

DCK_CONFIDENCE
DCK_FLAGS
DCK_LAST_ADDRESS_USED
DCK_LAST_CONNECTION
DCK_LAST_SERVER_ADDRESS
DCK_NAME_CONTEXT
DCK_REFERRAL_SCOPE
DCK_TRANSPORT_TYPE
DCK_TREE_NAME
DCV_ASYNC_MODE
DCV_CANONICALIZE_NAMES
DCV_DEREF_ALIASES
DCV_DEREF_BASE_CLASS
DCV_DISALLOW_REFERRALS
DCV_TYPELESS_NAMES
DCV_XLATE_STRINGS

Variables

ESBConnHandle
ESBConnRef
NetwarePresent
NWC
NWResult


Functions


function GetNDSTypelessName: String;


function NWCallsInit (InPtr, OutPtr: Pointer): NWCCode;


function NWCCGetConnInfo (ConnHandle: NWConnHandle; InfoType : Integer; Len : Integer; buffer: Pointer): NWCCode;


function NWCCGetPrimConnRef (var ConnRef : Integer): NWCCode;

Returns True if Valid Password is given. Both Password & Username must be in Capitals } {*** Calls to DLLs

function NWCCOpenConnByRef(ConnRef: Integer; OpenState: Integer; Reserved: Integer; var ConnHandle : NWConnHandle): NWCCODE;


function NWDSCreateContext: NWDSContextHandle;


function NWDSGetContext (Context : NWDSContextHandle; Key: Integer; Value : Pointer): NWCCODE;


function NWDSSetContext (Context : NWDSContextHandle; Key: Integer; Value : Pointer): NWCCODE;


function NWDSVerifyObjectPassword (Context : NWDSContextHandle; OptionsFlag: Integer; ObjectName: PChar; Password: PChar): NWCCODE;


function NWDSWhoAmI (Context : NWDSContextHandle; ObjectName: PChar): NWCCODE;


function VerifyNDSPassword (Name, Password: String) : Boolean;

Returns the current User's name qualified but without types

Types


NWCCode = Integer

NWConnHandle = Integer

NWConnNum = Byte

NWDSContextHandle = Integer

pNWConnHandle = ^Integer

Constants

DCK_CONFIDENCE = 2

DCK_FLAGS = 1

NDS Access for NDS Password Validation Program. Netware 4.1 or better required Netware Client 32 for Windows 95 required by Glenn Crouch esb@gold.net.au (c) 1997 ESB Consultancy PO Box 2259 Boulder WA 6432 AUSTRALIA http://www.gold.net.au/~esb v1.1 18 Sept 1997 - Now works properly with Windows NT 4 + Client32 Work here based on information obtained from Novell's publicly available information. You are free to use the code as you see fit, however an Email or Postcard would be nice, as would a reference to our web site included on our web site or in your docs. Though none of this is obligatory. ESB Consultancy makes no guarantees regarding the capabilities nor the "Safeness" of this code. It is free after all, so you take all the risks :-) ESB Consultancy makes no promise of support for this code, however we are happy to receive Email comments

DCK_LAST_ADDRESS_USED = 10

NLM only--see NWDSIPXNetworkAddr */

DCK_LAST_CONNECTION = 8

DCK_LAST_SERVER_ADDRESS = 9

DCK_NAME_CONTEXT = 3

DCK_REFERRAL_SCOPE = 5

DCK_TRANSPORT_TYPE = 4

DCK_TREE_NAME = 11

NLM only--above valid only if this set */

DCV_ASYNC_MODE = $00000008

DCV_CANONICALIZE_NAMES = $00000010

DCV_DEREF_ALIASES = $00000001

DCV_DEREF_BASE_CLASS = $00000040

DCV_DISALLOW_REFERRALS = $00000080

DCV_TYPELESS_NAMES = $00000004

DCV_XLATE_STRINGS = $00000002


Variables

ESBConnHandle : NWConnHandle = 0

If Novell & 32-bit Client present then this will NOT be 0 and will contain the Primary Connection Reference

ESBConnRef : Integer = 0

NDS Context Handle

NetwarePresent : Boolean = False

NWC : NWDSContextHandle = -1

If Novell & 32-bit Client present then this will be True

NWResult : NWCCode = 0

If Novell & 32-bit Client present then this will NOT be 0 and will contain the Connection Handle used by subsequent Routines