Data.Get.ND
Top  Previous  Next


Fills the [Data] section with data from Novell Directory

Tip: use the NDvalue function to extract a single value for an object.

Requirements
·NetWare client on the local machine, log on as admin  
·Novell controls  

Category
Data section

Script section
All

Data.Get.ND Source, SourcePath, ObjectType, IncludeSubContainers, ListOfProperties [,Add]

Source
Options: Container  
·Container - extract all objects in a container (OU)  

SourcePath
Full ND path to container  

ObjectType
Options: User | Group  
·User - get user properties  
·Group - get group properties  

IncludeSubContainers

Options: Yes | No  
·Yes - objects in subcontainers should be included  
·No - objects in subcontainers should not be included  

ListOfProperties

List of properties and destination columns, Format: NDpropertyName§Column§[NDpropertyName§Column§].  
 
The easiest way to find out correct property names for accounts is probably to use SetupExplorer, see How to display all existing properties for one account.  

"Data.Get.ND" also returns two none-standard ND properties -  
·Container = container of the object  
·NDSpath = full NDS path to object (use with Novell commands such as Nov.DS.Object.SetProperty)  

Add [Optional parameter]
Options: Add |  
·Add - Add data at the end of the [Data] section instead of replacing the entire [Data] section. This is useful when more than one Data.Get.ND command is used to get data from several different trees or containers.  

Examples
1) Fill the [Data] section with user properties from the "MyOu" OU in "Elm\MyOrg", include data in subcontainers. Put container of the object in column 1, CN in column 2, given name in column 3, last name in column 4 and full name in column 5.

[Init_Batch_Begin] 
Data.Get.ND Container,Elm\myorg\myou,user,yes,container§1§CN§2§given name§3§surname§4§full name§5§
[Init_Batch_End]


2) Fill the [Data] section with all group names in the "Elm" tree.

[Init_Batch_Begin]
Data.Get.ND Container,Elm,group,yes,CN§2§
[Init_Batch_End]