Imports a new map entry, or individual map record, with the specified key into Active Directory.


Entry Import(string key, string value, string comment);


Specify the following parameters when using this method.

Parameter Description


The key field that uniquely defines this entry in the NIS map.


The value associated with the key field for this entry in the NIS map.


Any optional text string to store in the comment field for this entry in the NIS map.

Return value

An entry object for the map entry imported.


The difference between the Import and Add methods is that the Import method performs minimal checking and validation of data to maximize performance.


Import throws an ApplicationException if the key or value is invalid.


The following code sample illustrates using Import to retrieve an existing NIS map entry from a specific map.

'Specify the zone you want to work with
set zone = cims.GetZoneByPath("LDAP://CN=qa-slovenia,CN=unix,DC=quantum,DC=net")
'Create the Store object
Set store = CreateObject("Centrify.DirectControl.Nis.Store")
'Attach to the target zone.
'Provide the path to the zone and user credentials (username and 'password).
store.Attach zone.ADsPath, "jae.smith", "pas$w0rd"
'Open the NIS map named "Remote servers"
Set map ="Remote servers")
'Add an entry to the "Remote servers" NIS map. The input format is:
map.import "oaxaca", "", "Latin America Support office"