Applies to: All versions of Centrify DirectControl on Mac OS X
Is there a way to make members of an AD group into local admins on a Mac system without having to use the DirectControl Console and Group Policies?
1. Create an AD group for Mac admins; e.g. "Mac Admins".
2. If using Zone Mode, give the Mac admin group a name and GID in the zone; e.g. macadmin with GID 8080.
3. Upgrade the admin group on the Mac to the new format, so that nested groups can be added to it; Open the Terminal and enter the command:
dseditgroup -o edit -f n admin
4. Add the AD group as a nested group inside the admin group, using the same UNIX name given in step 2:
dseditgroup -o edit -a macadmin -t group admin
5. Flush the cache:
OS X 10.4:
OS X 10.5 +:
Although this adds the AD group under the Mac local admin group, which allows unlocking of the padlock, the user won't look like an admin user in System Preferences > Accounts; i.e. the "Allow user to administer this computer" check box will not be checked. This is because it only looks at the direct member list of the admin group when deciding whether to check that box, not nested groups. However clicking the padlock icon, and entering the username and password will still be successful for members of the nested group.
To add individual AD users into the local admin group, please see: