The package is split into:
NDSm | Provide the basic type Context |
NDSContext | Functions needed to interact with NDS |
Buf_T | A class encapsulating a buffer for adding/modifying/retrieving |
NWServer | Functions to manage Netware servers |
Audit | Functions which hande server and context auditing |
Misc | Functions which does not fit in other categories. |
These are the public methods:
new()
GetHandle()
InitUnicodeTables()
GetConst()
GetContext()
IsInit()
LastErr()
LocaleConv()
SetContext()
DCK_FLAGS | Bit definitions | How to return/interprent values |
DCK_CONFIDENCE | Number | |
DCK_NAME_CONTEXT | String | The current context |
DCK_TRANSPORT_TYPE | Not in use | |
DCK_REFERRAL_SCOPE | Number | |
DCK_LAST_CONNECTION | Connection handle | Server connection to use for NDS operations |
DCK_TREE_NAME | String | Name of tree |
DCK_CONFIDENCE can have the following values:
0: DCV_LOW_CONF, 1:DCV_MED_CONF, 2:DCV_HIGH_CONF.
DCK_REFERRAL_SCOPE can have the following values:
0:DCV_ANY_SCOPE, 1:DCV_COUNTRY_SCOPE, 2:DCV_ORGANIZATION_SCOPE, 3:DCV_LOCAL_SCOPE
See GetConst() on how to retrieve constant values
Returns undef on failure, in which case you can use LastErr()
to get the netware error-code.
Example:
$Flags = $ContextObj->GetContext("DCK_FLAGS");
$Tree = $ContextObj->GetContext("DCK_TREE_NAME");
$Cont = $ContextObj->GetContext("DCK_NAME_CONTEXT");