Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >

KB-0612: How to make a members of an AD group into Local Admins on Mac OS X without using Group Policies.

Mac & PC Management Service ,  

2 May,16 at 05:33 PM

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:
  lookupd -flushcache 
OS X 10.5 +:
  /usr/bin/dscacheutil -flushcache
  /usr/bin/dsmemberutil flushcache
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:

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.