Open

Opens the NIS map with the specified name.

Syntax

Map Open(string mapName);

Parameter

Specify the following parameter when using this method:

Parameter Description

mapName

The name of the NIS map you want to remove.

Return value

The map object instance of the specified map, or null if the specified map is not found.

Exceptions

Open throws a COMException if there is an LDAP error. LDAP errors can occur if the connection to the LDAP server fails, the connection times out, invalid credentials are presented, or there are other problems communicating with Active Directory.

Example

The following code sample illustrates using Open to access a specific NIS map:

...
'Identify the zone you want to work with
set zone = cims.GetZone("sample.com/centrify/zones/default")
'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 = store.Open("Remote servers")
...