Commit

Commits the settings or changes for the map entry object to Active Directory.

Syntax

void Commit();

Exceptions

Commit throws an ApplicationException if it can’t find the DirectoryEntry value or if the key or value is invalid.

Example

The following code sample illustrates using Commit to make changes to an existing NIS map entry to Active Directory:

...
'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 username and password.
store.Attach zone.ADsPath, "jae.smith", "pas$w0rd"
'Open the generic map type named "Workstations IDs"
Set map = store.open("Workstations IDs")
'Modify the value field for the “Workstation” map entry:
set entry = map.get("128.10.12.1")
entry.Value   = "satellite1"
'Commit the changes to Active Directory
entry.Commit
wScript.Echo "NIS map entry “ & entry.Key & “: " & entry.Value
...