CommitWithoutCheck

Commits any changes or updates to the User object and saves the changes to Active Directory.

Syntax

void CommitWithoutCheck()

Discussion

When you use this method, it does not validate any of the data before saving.

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 access rights to commit changes on the Active Directory object.

Example

The following code sample illustrates using CommitWithoutCheck in a script:

...  
'Get the zone object  
Set objZone = cims.GetZone("ajax.org/UNIX/Zones/pilot")  
'Get the user object  
set objUser = cims.GetUserByPath("LDAP://CN=pat.hu,CN=Users, DC=ajax,DC=org")  
'Add the UNIX profile for the user  
set objUserUnixProfile = objUser.AddUnixProfile(objZone, nextuid, unixlogin,
defaultshell, homedir, admingid)  
'Enable the user’s UNIX profile  
objUserUnixProfile.UnixEnabled = True  
'Update Active Directory without validating the UNIX profile  
objUserUnixProfile.CommitWithoutCheck  
...