Hi..
After following intructions by Dan on this page:
https://jamfnation.jamfsoftware.com/discussion.html?id=7292
I've also seen this link and still can't get it to work:
https://jamfnation.jamfsoftware.com/discussion.html?id=6311
I've setup an EA to grab AD group membership. Works great...only on some clients. Other times if fails with the message: No such key: dsAttrTypeNative:memberOf
The trouble is that this attribute does exist for the user..and all users. I can see it in Apache Directory Studio.
the script in my EA is as follows. Anyone know what I'm doing wrong, or is there an easier to way display AD group membership for a user???
currUser=$( /usr/bin/who | /usr/bin/awk '/console/{ print $1 }' ) Groups=$( dscl /Active Directory/XX/All Domains read /Users/$currUser dsAttrTypeNative:memberOf | awk -F"OU" '{ print $1 }' | sed -e 's/CN=//g;s/,$//g;1d' ) echo "<result>$Groups</result>"
