Posted on 04-18-2012 12:39 PM
Mac has 10 partitions. I know I logged in using my AD account on partition #4.
So I image partition #5, and I get this prompt when it's done imaging.
How do we prevent this prompt from coming up? AD binding settings do not prompt for user account to be created locally...this seems to be "finding" other accounts on other partitions that are in AD and prompting to allow?!
Solved! Go to Solution.
Posted on 04-18-2012 01:06 PM
Here's the defaults command to disable:
sudo defaults write /Library/Preferences/com.apple.loginwindow EnableExternalAccounts -bool false
Posted on 04-18-2012 03:18 PM
" Curious though, when I run defaults read on the same command I get "0" instead of "False". Is this normal for these kinds of defaults commands?"
Yes.
defaults read-type /Library/Preferences/com.apple.loginwindow EnableExternalAccounts
will tell you the type of the key; you can't tell from the value.
"0" could be the string "0", an integer value of 0, or boolean False.
Posted on 04-18-2012 12:51 PM
Great...when I try to respond to the prompt I get an authentication prompt. Definitely not something we want non-admin users running multiple partition Macs to get...
OY!
Don
Posted on 04-18-2012 01:02 PM
I would love to remove that as well! When people have home folders on externals it asks this and can confuse the clients and our techs. Maybe an MCX????
Posted on 04-18-2012 01:06 PM
Here's the defaults command to disable:
sudo defaults write /Library/Preferences/com.apple.loginwindow EnableExternalAccounts -bool false
Posted on 04-18-2012 01:08 PM
Posted on 04-18-2012 01:10 PM
@rtrouton You rock! I'll add this as a script to run on first reboot.
Posted on 04-18-2012 01:16 PM
Just added this as an MCX. Works perfectly!
Posted on 04-18-2012 01:20 PM
are you sure new AD users can login now?
Posted on 04-18-2012 01:31 PM
I didn't test with AD only with Non AD users. Let me see.
Posted on 04-18-2012 03:13 PM
@rtrouton I added the command as a "run at boot" script at imaging time and it works fine. No more prompt, and I was able to log in using my domain credentials. Curious though, when I run defaults read on the same command I get "0" instead of "False". Is this normal for these kinds of defaults commands?
Don
Posted on 04-18-2012 03:18 PM
" Curious though, when I run defaults read on the same command I get "0" instead of "False". Is this normal for these kinds of defaults commands?"
Yes.
defaults read-type /Library/Preferences/com.apple.loginwindow EnableExternalAccounts
will tell you the type of the key; you can't tell from the value.
"0" could be the string "0", an integer value of 0, or boolean False.
Posted on 04-18-2012 04:20 PM
@gregneagle That's good to know...let me know if these kinds of tidbits are in your (and Ed's) MCX book; if so I'm happy to grab a copy. Clearly there's stuff left for us to learn. ;)
http://www.amazon.com/Enterprise-Managed-Preferences-Edward-Marczak/dp/1430229373
Posted on 04-18-2012 07:01 PM
The defaults command is covered on pages 40-42, and yes, determining the type of a value using `defaults read-type` is covered as well.
But you can also just read the output of `man defaults`.
Posted on 04-19-2012 01:36 PM
Well that sucks...so now that we don't get a prompt, I'm finding that when I boot into partition #4 using my domain credentials, the Mac automagically uses the home directory on partition #5.
Make it stop! :)