Posted on 10-16-2019 07:23 AM
We are having an issue here in the district where the macs are no longer pulling from Active directory. Some are working just fine, but others that say they have completed the AD bind are not letting any user in unless its the local admin account.
I have taken the AD profile off and then re installed it back to the macs and the issue continues.
There are also two macs that are listed under scope for the configuration, but when it goes to install, it never completes, and when i delete the machine and re add it the same issue happens.
Has anyone ever seen this before? Any suggestions?
Posted on 10-16-2019 09:33 AM
Two recommendations.
Remove the AD profile from the Mac, then remove the Mac from ADUC (Active Directory Users and Computers). Rebind again.
It is not really necessary anymore to bind Macs to AD, this will also solve a lot of headache for you (or your IT department as well).
Posted on 10-16-2019 09:38 AM
Yes look into Jamf Connect or NoMAD. I left the bind years ago and have been happy ever since.
Posted on 10-16-2019 09:42 AM
I am in early testing phase of NoMAD, seems to work fine so far. Other than not getting the logo and background change working. And it's free, great for my budget.
Posted on 10-16-2019 10:46 AM
@edickson Can you elaborate on your second recommendation. A work place like mine requires machines to be on AD because we want to allow everyone secure access to any machine. How is this not necessary for Macs. How do you validate different users?
Posted on 10-16-2019 11:15 AM
First, I'm not really a mac guy but I would guess your issue is do to non-standard computer names. If you have something strange in the computer name like $ or %, or the name is to long for AD to process that can stop them from joining AD. I strongly disagree with Macs not needing to be added to AD.
Posted on 10-16-2019 11:24 AM
It is not really necessary anymore to bind Macs to AD, this will also solve a lot of headache for you (or your IT department as well).
Unfortunately for a lot of Enterprise it is very necessary to bind to AD. Or "just don't use a Mac is the answer"
Posted on 10-16-2019 11:37 AM
@ammonsc Amen to that. Tired of the "just don't bind" end-all-be-all fix preached by far too many who just don't get it.
Posted on 10-16-2019 11:56 AM
Tired of the "just don't bind" end-all-be-all fix preached by far too many who just don't get it.
With all due respect, it's whomever is mandating you be bound to AD that doesn't get it. There is a reason Apple made Enterprise Connect and have now integrated that concept into Catalina. Binding on Macs is a bad practice in all but certain situations and you should be pushing back on it.
Posted on 10-16-2019 12:08 PM
School here. AD ties into literally everything. Zero problems on any Mac. Ever. YMMV.
Posted on 10-16-2019 12:14 PM
Posted on 10-16-2019 12:18 PM
Also representing education. Binding works well with very few issues. Tired of every AD question turning into a stop binding argument. I get where binding is no longer needed in some environments - especially companies where 99% of their fleet is a Mac assigned to a single employee. Education environments are typically far from that.
I will admit there are quite a few variables to binding that can make a big different in how things work. Mobile accounts enabled? Use Windows UNC path for home? Posting the output of "dsconfigad -show" might be a good start when looking for help.
Posted on 10-16-2019 12:21 PM
Don't want to derail this thread too much, but those of you binding: are you using filevault as well? Mobile accounts/AD gave us so many issues with filevault that we determined it was worth it to just cut the losses and stop binding. I am in the position where our Macs are one user devices and we are going more and more cloud these days, so its easier to get away without any bind.
Posted on 10-16-2019 12:29 PM
@hdsreid We do not use FV at all for staff or students. I personally don't use it either.
Posted on 10-16-2019 12:35 PM
Work in Education and we bind to AD and use FV. It works great! DOes make it harder for people to share laptops but that's just how Macs work.
Posted on 10-16-2019 12:39 PM
If you want some free help, give me a call at 212.251.1211 I have nailed down the whole mac binding process without NoMad.
Posted on 10-16-2019 12:43 PM
The certain situations I mentioned was in reference to shared machines. For anyone where that is not the case, what is your argument FOR binding? Either way, I would encourage anyone still binding to start looking at alternatives now. The writing is on the wall for Apple to completely deprecate it, IMO.
Posted on 10-16-2019 12:58 PM
We're looking into the getting out of the AD binding world. it is the transition that concerns me the most TBH. That being said to manage binding I have EA's that try and detect bad AD binds and scripts that rebind automatically. I have scripts in Self Service that fix FV2 issues when users change their passwords not via NoMAD or Sys Prefs and we regularly have to deal with Keychain issues that result from the same thing.
Posted on 10-16-2019 01:17 PM
@strayer Can you share your FV2 script?
Posted on 10-17-2019 08:55 AM
@ammonsc this script requires you have a local admin account that you then pass the adminname and admin password for as variables in jamf.
#! /bin/bash
# referenced this article for some of the commands
#https://www.jamf.com/jamf-nation/discussions/26608/adding-user-to-filevault-using-fdesetup-and-recovery-key
adminName=$4
adminPass=$5
userName=$3
fdesetup remove -user $userName
if [[ "$userName" == "adminName" ]] || [[ "$userName" == "admin0417" ]]; then
echo "Admin user is logged in."
exit 1
dialog="Do Not run this tool when logged in as Admin! Exiting!"
cmd="Tell app "System Events" to display dialog "$dialog""
/usr/bin/osascript -e "$cmd"
fi
echo "prompting user for Account Password"
userPass=$(/usr/bin/osascript<<END
tell application "System Events"
activate
set the answer to text returned of (display dialog "Enter your Current Account Password:" default answer "" with hidden answer buttons {"Continue"} default button 1)
end tell
END)
expect -c "
spawn fdesetup add -usertoadd $userName
expect "Enter the primary user name:"
send ${adminName}
expect "Enter the password for the user '$adminName':"
send ${adminPass}
expect "Enter the password for the added user '$userName':"
send ${userPass}
expect"
fdeList=`fdesetup list | grep $userName`
if [[ "$fdeList" == *"$userName"* ]] ; then
echo "$userName Added successfully"
dialog="$userName Added successfully"
cmd="Tell app "System Events" to display dialog "$dialog""
/usr/bin/osascript -e "$cmd"
exit 0
else
echo "Adding $userName to FV2 Failed"
dialog="Adding $userName to FV2 Failed"
cmd="Tell app "System Events" to display dialog "$dialog""
/usr/bin/osascript -e "$cmd"
exit 1
fi
Posted on 10-17-2019 08:56 AM
Here is a link to my keychain password script which is in progress and I detail that more in this post