CommitWithoutCheck
Commits any changes or updates to the Group object and saves the changes to Active Directory without validating any of the data fields.
Syntax
void CommitWithoutCheck()
Discussion
Because this method does not perform any validation checking, it commits changes
faster than the Group.Commit
method.
Exceptions
CommitWithoutCheck
may throw one of the following exceptions:
-
COMException
if an LDAP error occurs. LDAP errors can occur if the connection to the LDAP server fails, the connection times out, invalidcredentials are presented, or there are other problems communicating with Active Directory. -
UnauthorizedAccessException
if you have insufficient permissions to commit the group object to Active Directory.
Example
The following code sample illustrates using CommitWithoutCheck
in a script:
...
'Identify the zone you want to work with
set zone = cims.GetZone("ajax.org/UNIX/Zones/eur007")
'Identify the Active Directory group
set group = cims.GetGroupByPath("LDAP://CN=Subcontractors,
CN=EuropeanDiv,DC=ajax,DC=org")
'Set the UNIX profile associated with the group
group.SetGroupUnixProfile(zone, 8234, "subs")
'Update Active Directory without validation
group.CommitWithoutCheck
...