Returns the map entry, or individual map record, with the specified key.


Entry Get(string key);


Specify the following parameter when using this method:

Parameter Description


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

Return value

An entry object instance for the NIS map and key specified.


The following code sample illustrates using Get 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, "nate.james", "my3w0rds"
'Open the NIS map named "Remote servers"
Set objMap ="Remote servers")
'Specify the map entry key field
set objEntry = objMap.Get("helios")
wScript.Echo “IP: “ & objEntry.Value