cadeyrn / enterprise-policy-generator

The Enterprise Policy Engine allows administrators to configure Firefox via a configuration file. The Enterprise Policy Generator helps to create the configuration file.
https://addons.mozilla.org/en-US/firefox/addon/enterprise-policy-generator/
Mozilla Public License 2.0
64 stars 11 forks source link

policies.json not work #51

Closed luremus007 closed 5 years ago

luremus007 commented 5 years ago

policies not work in firefox, created with enterprise policy generator mozilla

cadeyrn commented 5 years ago

Thank you for using the Enterprise Policy Generator.

Please share the content of your policies.json file and tell me what exactly does not work. All policies or a specific policy?

Thank you.

luremus007 commented 5 years ago

thx for the quickly answer. The content is:

{ "policies": { "DisableTelemetry": true, "DisplayBookmarksToolbar": false, "Extensions": { "Install": ["C:\Program Files\Mozilla Firefox\distribution\pornmalware_blocker-1.4-fx.xpi"] } } }

Nothing works, the policies will not applying. The picture above contents all information.

cadeyrn commented 5 years ago

Both DisableTelemetry and DisplayBookmarksToolbar works for me. Please note that DisableTelemetry is a locked preference. With this policy applied it can't be changed by the user. But DisplayBookmarksToolbar is not a locked preference, it only sets the default value. The user can show or hide the toolbar at any time.

I can't test your Extensions policy because I don't use Windows.

You could install Firefox 63 Beta and open the page about:policies. There you can see if there are errors in your policies. This feature is not available in Firefox 62.

luremus007 commented 5 years ago

i installed FF beta 63, about:policies = Error parsing JSON file.

if telemetry would work, i can only trust it. bookmark false is only for test, i will enable it after a fresh installation. extensions autoinstall would be nice.

i try now just one week also with GPO in a domain, this will not work too. i give up

(for google chrome: it works without any troubles, GPO and preferences!)

luremus007 commented 5 years ago

Habe FF beta 63 installiert, about:policies = Error parsing JSON file.

Ob Telemetrie wirklich funktionier kann ich nicht überprüfen, nur vertrauen. Bookmark will ich (wenns funktioniert) einschalten nach installation. Extensions automatisch installieren wäre nett.

Ob es der user ändern kann oder nicht ist sekundär

i installed FF beta 63, about:policies = Error parsing JSON file.

if telemetry would work, i can only trust it. bookmark false is only for test, i will enable it after a fresh installation. extensions autoinstall would be nice.

i try now just one week also with GPO in a domain, this will not work too. i give up

(for google chrome: it works without any troubles, GPO and preferences!)

cadeyrn commented 5 years ago

i installed FF beta 63, about:policies = Error parsing JSON file.

Then there is a syntax error in your JSON file. Please note that in your previous comment all the "\" have to be "\\" in the extension install path. It's a GitHub bug that backslashes have to be escaped in comments. But in your screenshot it's correct. If I use the JSON content from your previous comment without repairing the path then I also get the message "Error parsing JSON file". If I escape the backslashes the only error I see is a wrong install path because the path does not exist on my system. Both other policies are applied.

if telemetry would work, i can only trust it.

You can check this. The checkbox in about:preferences is disabled and can't be changed. But this won't work until the syntax error is fixed. With syntax error in the JSON file no policies are applied.

(for google chrome: it works without any troubles, GPO and preferences!)

I don't have any troubles with Firefox. ;)

luremus007 commented 5 years ago

Now it works policies.json, definitiv it looks like it now: mozilla2

noteworthy is the number of backslashes! (I had double backslashes bevor)

About telemetriy:

I mean, you can not really control that, even though the policy works


i installed FF beta 63, about:policies = Error parsing JSON file.

Then there is a syntax error in your JSON file. Please note that in your previous comment all the "\" have to be "\" in the extension install path. It's a GitHub bug that backslashes have to be escaped in comments. But in your screenshot it's correct. If I use the JSON content from your previous comment without repairing the path then I also get the message "Error parsing JSON file". If I escape the backslashes the only error I see is the install path because the path does not exist on my system. Both other policies are applied.

if telemetry would work, i can only trust it.

You can check this. The checkbox in about:preferences is disabled and can't be changed. But this won't work until the syntax error is fixed. With syntax error in the JSON file no policies are applied.

(for google chrome: it works without any troubles, GPO and preferences!)

I don't have any troubles with Firefox. ;)

luremus007 commented 5 years ago

mozilla2 mozilla3

cadeyrn commented 5 years ago

That's weird. In my opinion double backslashes should be the correct way. :-/ But since I don't have Windows I can't check.

I mean, you can not really control that, even though the policy works

You can trust that it works because Firefox is open source and there would be a really big shitstorm if the telemetry setting were a fake. ;-)

By the way: I recommend to not disable Telemetry. Telemetry is not for Mozilla, it's for you. Without data it's not possible to take your configuration into account when Mozilla has to made decisions like the removal of features.

luremus007 commented 5 years ago

kleine Anregung: please add a button to browse and load the path and filename in this field.

finaly: If the EPG should also work correctly under ff for windows (and macOS), you also have to test it under windows (and macOS), not only Linux.

mozilla5

cadeyrn commented 5 years ago

I asked for clarification about the correct way to write pathes on Windows: https://github.com/mozilla/policy-templates/issues/267

If the EPG should also work correctly under ff for windows (and macOS), you also have to test it under windows (and macOS), not only Linux.

I only use macOS. Like most developers I don't have access to all operating systems and depend on feedback of the users. ;-)

luremus007 commented 5 years ago

thx

PS: i have, among other things, a notebook with tribpe-boot: windows and two different linux

cadeyrn commented 5 years ago

Mike Kaply said that two backslashes should be enough. Could you please test again and if you still need four backslashes file a bug in Mozilla's bugtracking system?

https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&component=Enterprise+Policies

luremus007 commented 5 years ago

The json with doublebackslash works now too. But I open the json from the ff\distribution, its shows a old content of the file, not the content aktuel I had copied. But in ff about:policies show the correct policies, that is really bizare. I deleted the ff\distribution and then copied from another drive the distribution with content many times, with the same affect.

I work moore than 25 years with DOS and WIN, I have MS certified MCP, MCSE, etc. and I know what I do, but this I don’t understand this.

Mike Kaply said that two backslashes should be enough. Could you please test again and if you still needs for backslashes file a bug in Mozilla's bugtracking system?