I'm trying to figure out the best way to make one AD user per system into a local admin. The idea is that the user to whom the system is assigned should be a local admin, but we don't want to extend admin rights to all domain users. I thought it might be useful to create an Extension Attribute for each systems, manually populated, that's the shortname of the user it's assigned to. Then I could pass that to a script that uses dscl and dseditgroup to make sure that user is in the admin group, and other domain users aren't.
It doesn't look like I can pass Extension Attributes as parameters, though, which leaves me wondering about the best way to do this.
