I need to make an extension attribute to check for a certain group on
our AD. I can list all groups based on user but no luck basing it off
computer name. Any ideas?
I got it working! its kinda rudimentary but it does the trick and easy
to read for a non-bash scripter#!/bin/bashdomainName=`echo show
com.apple.opendirectoryd.ActiveDirectory |scutil | grep DomainNameFlat |
awk '{print $3}'`if [ $? -ne 0 ]thenecho "...