DefaultGroup
Gets or sets the default group profile to use as the primary group for new users in the zone.
Syntax
IGroupUnixProfile DefaultGroup{get; set;}
Property value
The default group property for the zone.
Discussion
The default group profile for a zone is always associated with an existing Active Directory group. You can, however, define a primary group that is not associated with any Active Directory group.
For more information about defining primary groups for UNIX users, see the Planning and Deployment Guide and the Administrator’s Guide for Linux and UNIX.
Example
The following code sample illustrates using DefaultGroup
in a script:
...
'Specify the zone you want to work with
set objZone = cims.GetZone("ajax.org/UNIX/Zones/test_lab")
'Check the default group for the zone
If objZone.DefaultGroup is nothing
'Identify the Active Directory group object
set objGrp = cims.GetGroupByPath("LDAP://CN=IT Interns,CN=Users,DC=ajax,DC=org")
'Get the UNIX profile for the Active Directory group
set objGrpProfile = objZone.GetGroupUnixProfile(objGrp)
'Make this profile the default group
set objZone.DefaultGroup = objGrpProfile
end if
objZone.Commit
...