Opens the NIS map with the specified name.


Map Open(string mapName);


Specify the following parameter when using this method:

Parameter Description


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.


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.


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("")
'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")