Posted on 03-24-2021 06:19 PM
Hi Folks,
First time poster here on JAMF Nation. In short, in an Educational Environment I am mounting a single SMB File Share through a Policy that then runs the following script:
https://gist.github.com/adamchilcott/2634a899f361bc1a8a157fa3a26a3599
This is being applied to a Lab of AD joined iMac's running Big Sur.
My Problem:
I have to set
sudo defaults write /Library/Preferences/com.apple.NetworkAuthorization AllowUnknownServers -bool YES
To prevent a prompt appearing to the end user warning them they are connecting to an SMB share that they haven't initiated (because this is managed through a script).
Prompt That Appears:
You are attempting to connect to the server "blah.server.com".
Click Connect to continue.
Cancel/Connect
I would like to find where I can set a list of trusted servers. I currently cannot find where this exists after checking through a number of *.plist files in
/Library
and other locations.
So what happens when this script runs from an End-User perspective:
Besides not knowing where to set the trusted server list everything else is working as expected.
Any assistance would be greatly appreciated.