Hi, I've got users who are intermittently unable to access computers via ARD. We've set up an AD security group e.g. MYDOMAINAllowRemoteDesktop and then created a local ard_admin group on each machine and linked this security group to it using dseditgroup. Users then connect via ARD and authenticate with their domain accounts.
This has worked without issue for several months, however recently I've been having more and more users reporting issues with this no longer allowing them to connect to random machines, getting an "Access Denied" error.
Below is the script that we've been using to create the local group and bind it with the AD group.
#!/bin/bash
# Script to enable Active Directory logins for Apple Remote Desktop
# Enable directory logins on Apple Remote Deskop
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -clientopts -setdirlogins -dirlogins yes
# Grant access to Apple Remote Desktop by creating a local “ard_admin” group, and linking an AD security group to it
dseditgroup -o create ard_admin
dseditgroup -o edit -a 'MYDOMAINAllowRemoteDesktop' -t group ard_admin
exit 0
I've tried re-running this script on several machines which have the issue, however the issue persists. I've also tried the command below which I've found from searching blogs etc about this issue, but it doesn't seem to make any difference.
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -privs -all -users ard_admin -restart -agent
I've tried creating a second local group called ard_allowed on a test machine and bound the same security group to it, but this fails also.
My understanding is that none of the members of this security group are able to connect to the affected machines, however there are other machines which ARD is continuing to work on without issue.
If I use dseditgroup to read the ard_admin group, I see the below which indicates that the group has definitely been nested correctly, (I've used mm2270's script shared in this post to confirm the nested group name is correct) however users are still experiencing issues.
iMac:~ root# dseditgroup -o read ard_admin
dsAttrTypeStandard:GeneratedUID -
2634ED0F-6D39-4C19-8A79-0E8E27942CF7
dsAttrTypeStandard:PrimaryGroupID -
501
dsAttrTypeStandard:RecordName -
ard_admin
dsAttrTypeStandard:RecordType -
dsRecTypeStandard:Groups
dsAttrTypeStandard:NestedGroups -
F0FA67BC-9246-4DB3-A412-8771F05CB3A4
dsAttrTypeStandard:AppleMetaNodeLocation -
/Local/Default
I can't find much else about this online when I'm searching Google, has anyone got any advice on what else I could try to resolve this?
Thanks