Commit

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

Syntax

void Commit();

Discussion

The Commit method saves the settings of the map, but not the entries in the map.

Exceptions

Commit throws an ApplicationException if access is denied.

Example

The following code sample illustrates using Commit in a script:

SET cims = CreateObject("Centrify.DirectControl.Cims3")  
SET zone = cims.GetZone("example.org/Zones/default")  
SET store = CreateObject("Centrify.DirectControl.Nis.Store")  
store.Attach zone.ADsPath, "username", "password"  
SET map = store.Open("computers")  
map.Name = "hosts"  
map.Commit