How to allow administration of OS X from network-based accounts
These are multiple ways you can specify which network users or groups are allowed to have administrator access.
System Preferences
You can add a network user to the local admin group using System Preferences.
Log in with a network user account.
From the Apple menu, choose System Preferences.
From the View menu, choose Users & Groups.
Select the "Allow user to administer this computer" checkbox.
Enter a current administrator's name and password when prompted.
Directory Utility (Active Directory)
You can add Active Directory (AD) groups to the local admin group using Directory Utility. (Only Active Directory groups may be added using this method.)
From the Apple menu, choose System Preferences.
From the View menu, choose Users & Groups.
Click Login Options.
Click the Edit button by "Network Account Server".
Click the Open Directory Utility button to open Directory Utility (/System/Library/CoreServices/Directory Utility).
Click the lock in the lower left corner to authenticate.
Under the Services tab, double-click Active Directory to edit it.
Click the disclosure triangle next to "Show Advanced Options" to reveal its contents.
Under the Administrative tab, click the "Allow administration by" checkbox to enable it.
Click the add button (+) to add new entries to the list.
Click OK to save your changes.
Command line (advanced)
If you're familiar with using Terminal and the command line, you can add network users or groups to the local admin group using the dseditgroup
command in Terminal. The following example adds a network user to the admin group:
dseditgroup -o edit -n /Local/Default -u localadmin -p -a networkuser -t user admin
In this example, "localadmin" is the name of a local administrator account on the workstation (you're prompted for this account password) and "networkuser" is the short name of the network user.
You can learn more about editing users and groups from the command line by viewing the dseditgroup
man page.