Hi All,
I need help everyone, I'm trying to use this script(adaptation from @bentoms scripts w/ dockutil) to map my Network share but I'm getting a dscl not found on the ADGroups variable. Thanks in advance.
#!bin/bash
loggedInUser="$3"
accounType="dscl -u /Active Directory/Domainname/All Domains -read /Users/$loggedInUser | grep UniqueID | cut -c 11-"
ADGroups="dscl -u /Active Director/Domainname/All Domains -read /Users/$loggedInUser | awk '/^dsAttrTypeNative:memberOf:/'"
if [$ADGroups = groupname]; then
/usr/local/bin/dockutil --add cifs://FQDN/path/to/share
else
exit 1
fi