Remove
Removes the map entry with the specified key.
Syntax
void Remove(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. |
Exceptions
Remove throws an ApplicationException if it can’t find the DirectoryEntry value.
Example
The following code sample illustrates using Remove to remove an existing NIS map
entry by key name from a specific 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
store.Attach zone.ADsPath, "jae.smith", "pas\$w0rd"
'Remove the “Modified_Key” map entry from the "generic map" NIS map
set map = store.Open("generic map")
map.Remove "Modified_Key"
wScript.Echo "NIS map entry removed."
...