Get

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

Syntax

Entry Get(string key);

Parameter

Specify the following parameter when using this method:

Parameter Description

key

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.

Example

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 = store.open("Remote servers")
'Specify the map entry key field
set objEntry = objMap.Get("helios")
wScript.Echo “IP: “ & objEntry.Value
...