Validates the data in the GroupUnixProfile object before any changes are committed to Active Directory.
The method validates the following:
- The group name is a valid string that can contain only letters (upper- or lowercase), numerals 0 through 9, and the hyphen (-) and underscore (_) characters.
- The GID value is a positive integer. Negative numbers are not allowed.
- The group profile does not duplicate an existing group identifier (GID) or group name.
If the GroupUnixProfile object is marked for deletion, the method skips validation tests.
Validate throws and ApplicationException if any field in the UNIX group profile is invalid.
The following code sample illustrates using Validate in a script:
... 'Identify the zone you want to work with set objZone = cims.GetZoneByPath("LDAP://cn=eur007,cn=Zones, cn=UNIX,dc=ajax,dc=org") 'Get the UNIX group profile you want to work with set objProfile = objZone.GetGroupUnixProfileByGid(“905”) 'Validate the UNIX profile associated with the group objProfile.Validate ...