NDSm::Buf_T can also convert login and profile scripts to perl filehandles so you can read and write to them as you would do with a normal file.
NDSm::Buf_T does not inherit any metods from other classes, so you probaly
want to create a NDSm or NDSm::NDSContext object to get the context spesific
handle and to control in what form the rerieved data is returned. You should
use GetHandle() to get the $ContextHandle
parameter used with NDSm::Buf_T methods.
This can include:
ObjectFlags can have the following values which may be ORed:
0x0001 DS_ALIAS_ENTRY
0x0002 DS_PARTITION_ROOT
0x0004 DS_CONTAINER_ENTRY
0x0008 DS_CONTAINER_ALIAS
0x0010 DS_MATCHES_LIST_FILTER
0x0020 DS_REFERENCE_ENTRY
0x0040 DS_40X_REFERENCE_ENTRY
0x0080 DS_BACKLINKED
0x0100 DS_NEW_ENTRY
Returns undef on error, in which case you can use LastErr() to get the
netware error-code.
Example:
($ObjectName, $AttrCount, $objectFlags, $subordinateCount, $modificationTime
$baseclass) = $Buf->GetObjectName($ContextHandle);
@ObjectInfo = $Buf->GetObjectName($ContextHandle);
[0] : The name of the root object of a partition. Always a NDS container
name
[1] : The replica type which can have the following values:
[0] : The name of of the current server.
[1] : The number of replicas found on this server.
Returns undef on error, in which case you can use LastErr() to get
the netware error-code.
Example:
($ServerName, $NumReplica) = $Buf->GetServerName($ContextHandle);
DSV_READ | ExtSyncRead, ListAttrsEffectiveRights, Read, ReadReferences |
DSV_COMPARE | Compare |
DSV_SEARCH | ExtSyncList, ExtSyncSearch, ListByClassAndName, ListContainers, PutFilter, Search (Not supported with NDSm) |
DSV_ADD_ENTRY | AddObject |
DSV_MODIFY_ENTRY | ModifyObject |
DSV_READ_ATTR_DEF | ReadAttrDef |
DSV_DEFINE_CLASS | DefineClass |
DSV_READ_CLASS_DEF | ReadClassDef |
DSV_MODIFY_CLASS_DEF | ModifyClassDef |
DSV_LIST_CONTAINABLE_CLASSES | ListContainableClasses |
DSV_READ_SYNTAXES | GetSyntaxDef, PutSyntaxName, and ReadSyntaxes |
http://www.ahs.hist.no/distr/NDSm/
Copyright (c) Steinar Kleven 1997. All rights reserved.