Would folks on here be willing to share sample JSON files for deploying/managing Firefox with? Nothing too sensitive about your environment, but I’m having trouble wrapping my brain around the change to using a JSON file instead of using previous cck2 methods to manage with.
We continue to use CCK2. You have to open the CCK2 extension itself in an older version of Firefox, but the autoconfig files it generates seem to still work fine with the current apps.
Perhaps helpful ....
https://support.mozilla.org/en-US/kb/deploying-firefox-customizations-macos
https://addons.mozilla.org/en-US/firefox/addon/enterprise-policy-generator/
https://github.com/neilmartin83/autopkg-recipes/blob/master/Mozilla/FirefoxPolicies.pkg.recipe
Here's ours... The certificates part doesn't work on Firefox for Mac yet.
{
"policies":
{
"Authentication":
{
"SPNEGO": ["example.com", "https://example.com"],
"Delegated": ["example.com", "https://example.com"],
"NTLM": ["example.com", "https://example.com"]
},
"Certificates":
{
"ImportEnterpriseRoots": true
},
"DisablePocket": true,
"DisableTelemetry": true,
"DontCheckDefaultBrowser": true,
"Homepage":
{
"URL": "https://www.example.com"
},
"OverrideFirstRunPage": "https://www.example.com"
}
}
{
"policies": {
"DisableAppUpdate": true,
"DontCheckDefaultBrowser": true,
"SearchBar": "separate",
"Authentication": {
"SPNEGO": ["xxxx.int", "xxxx.com"],
"AllowNonFQDN": {
"SPNEGO": true
},
"Certificates": {
"ImportEnterpriseRoots": true
},
"DisableBuiltinPDFViewer": true,
"DisableTelemetry": true,
"DontCheckDefaultBrowser": true,
"Homepage": {
"URL": "http://ssoportal.xxxx.int/",
"Locked": true,
"StartPage": ["homepage", "previous-session"]
},
"OverrideFirstRunPage": "http://ssoportal.xxxx.int",
"OverridePostUpdatePage": "http://ssoportal.xxxx.int"
}
}
}
However can't make it work...
I'm using this script to download and prep my Firefox pkg. https://github.com/redninja2/jamf-scripts/blob/master/3rd%20Party%20Tools/updater_Firefox.sh
Since version 64, you can now configure Firefox using a configuration profile. A policy.json file is therefore no longer required unless you wish to package it up with the app.
https://github.com/mozilla/policy-templates/blob/master/mac/README.md
@grahamrpugh We can't get it to work with a configuration profile. Any tips?
We changed the Homepage in the original plist.
org.mozilla.firefox.plist > Custom payload on Computer Level. Firefox wasn't picking the changes.
Tested on v64 and v65.
@kroberts1 Awesome. Thx
Take a Look at ProfileCreator and save yourself a lot of work..
https://github.com/erikberglund/ProfileCreator/releases/tag/v0.2.4-beta.9
I've played with ProfileCreator a few months ago. Totally forgot about it. Thanks helps a lot.
@daniel.hayden ProfileCreator: what a wonderful time-saving tool! Thank you for sharing!
I'm trying to set the following configs for Firefox and i'm struggling. With a configuration profile i was able to successfully enable:
EnterprisePolicyEnabled and ImportEntepriseRoots.
What I can't figure out how to do is enable network.negotiate-auth.delegation-uris and network.negotiate-auth.trusted.uris. at this point is it even possible to manage those specific configurations with a .plist and config profile or do i have to use a .json file to manage this?
Edit I realized after opening up profile creator what keys and dictionaries Firefox was actually wanting.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnterprisePoliciesEnabled</key>
<true/>
<key>Certificates</key>
<dict>
<key>ImportEnterpriseRoots</key>
<true/>
</dict>
<key>Authentication</key>
<dict>
<key>SPNEGO</key>
<array>
<string></string>
<string></string>
<string></string>
</array>
<key>Delegated</key>
<array>
<string></string>
</array>
</dict>
</dict>
</plist>
Glad this old post generated a healthy following...Since I originally asked the question I switched from doing the JSON file to a mobile config file that I handcrafted making sure to import enterprise roots and of course the setting to enable the use of mobile config files along with everything else we normally customize.
For anyone interested this Bugzilla submission talks about using the Mac’s preference management system to enable proper management of Firefox. Keeps me from having to repackage: https://bugzilla.mozilla.org/show_bug.cgi?id=1445943
+1 to daniel.hayden and ProfileCreator suggestion.
I was struggling with Firefox and Chrome settings files syntax and understanding what the settings do. Profile Creator has explanations for each and lets you configure ALL the settings in a GUI. I exported as .plist and imported to a profile using the Application and Custom Settings payload.
To Daniels "save yourself a lot of work" I would add Do yourself a favor!
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.