Having troubles getting mozilla.adm working

Post Reply
bigdoughtech
Posts:4
Joined:Wed May 10, 2006 10:38 am
Having troubles getting mozilla.adm working

Post by bigdoughtech » Wed May 10, 2006 10:41 am

I'm using the 1.5.0.3 msi, and I finally got it to deploy properly through a GPO, but I can't get the proxy settings that I set up with the mozilla.adm policies to apply. Any suggestions?

nico
Posts:6
Joined:Tue Apr 18, 2006 3:40 am

I'm testing this with the 1.5.03 FFCE .msi

Post by nico » Fri May 12, 2006 3:45 am

Hi,

Apply the GPO localy throught the firefox.adm at the computer level works for me.
I've uncomment these lines:

; NAME "Automatic Proxy Configuration URL" VALUE NUMERIC 2
END ITEMLIST
END PART

; PART "Automatic Proxy Configuration URL" EDITTEXT
; VALUENAME AutoProxyURL
; END PART

And put this value into the field Automatic Proxy Configuration URL:
http://thewebproxy/proxy.pac

I have to test via a domain policy.

Cheers.

bigdoughtech
Posts:4
Joined:Wed May 10, 2006 10:38 am

Post by bigdoughtech » Fri May 12, 2006 1:02 pm

Hmmm... Didn't work...

Are there known issues when you're installing over the standard firefox? Is there any way to clear out the original firefox installation before installing the CE version?

User avatar
DraconPern
Site Admin
Posts:1218
Joined:Thu Oct 30, 2003 11:47 pm
Location:Texas
Contact:

Post by DraconPern » Sat May 13, 2006 12:05 am

The MSI already does an uninstall of the standard firefox so that shouldn't be an issue.
FrontMotion Lead Developer

bigdoughtech
Posts:4
Joined:Wed May 10, 2006 10:38 am

Post by bigdoughtech » Mon May 15, 2006 7:07 am

Despite deploying the msi, firefox still isn't acknowledging the settings that I set using either firefox.adm or mozilla.adm.

Has anyone seen this before?

Is there anything that I can check out to see where this is going wrong?

User avatar
DraconPern
Site Admin
Posts:1218
Joined:Thu Oct 30, 2003 11:47 pm
Location:Texas
Contact:

Post by DraconPern » Mon May 15, 2006 10:44 am

In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

create a dword - 'UserEnvDebugLevel'

set it to 0x30002

Log file in %Systemroot%\Debug\UserMode\Userenv.log will tell you if the GPO is applied.
FrontMotion Lead Developer

User avatar
DraconPern
Site Admin
Posts:1218
Joined:Thu Oct 30, 2003 11:47 pm
Location:Texas
Contact:

Post by DraconPern » Mon May 15, 2006 10:57 am

for the automatic proxy config, the firefox.adm seems to be half way implemented. AutoProxyURL shouldn't be working, and I think nico just got lucky that it worked. ^^;

use mozilla.adm instead.
network.proxy.type=2
network.proxy.autoconfig_url=a url to a .pac file

network.proxy.type=1
network.proxy.http, .http_port, ftp, ftp_port ... etc.
FrontMotion Lead Developer

nico
Posts:6
Joined:Tue Apr 18, 2006 3:40 am

thanks

Post by nico » Wed May 24, 2006 6:56 am

I made a test from scratch and the mozilla.adm network values did works as advertised

bigdoughtech
Posts:4
Joined:Wed May 10, 2006 10:38 am

Post by bigdoughtech » Thu May 25, 2006 9:34 am

It looks like the GPOs are being applied correctly, and the registry entries are there, but the firefox doesn't seem to be acknowledging them. The settings aren't changing.

sabroadhead
Posts:3
Joined:Mon Oct 02, 2006 6:27 am

I have the same problem

Post by sabroadhead » Tue Oct 03, 2006 6:56 am

I have tryed this on an new build and an old one. I apply the .07.msi file and that works great. no problem. but i have the firefox.adm in AD and when i look in the local reg the setting are there but firefox dose not see them. any iders. thanks

simon

CGirardy
Posts:93
Joined:Thu Jun 29, 2006 4:07 am

Post by CGirardy » Tue Oct 10, 2006 3:42 pm

Hi,
I had a lot of problems making this working.
Right now, I have mixed up the Firefox MSI file from the fantastic job made by DraconPern and an extension called Group Policy Extension for Firefox 1.x made by Mark and downloaded here : http://homepages.ed.ac.uk/mcs/GPOforFirefox.zip

This only works after making the following changes to the mozilla.adm made by DragonPern :
Every entry in the ADM file HAS to be a REG_SZ type.
You do that by changing for example this :
POLICY "network.proxy.http_port"
PART "network.proxy.http_port" NUMERIC
VALUENAME "network.proxy.http_port"
END PART
END POLICY

into this :
POLICY "network.proxy.http_port"
PART "network.proxy.http_port" EDITTEXT
VALUENAME "network.proxy.http_port"
END PART
END POLICY

It worked for me like this. And it works for every settings even the ones for the extensions.
Right now, I'm having a new problem :
How can I set a parameter without preventing the user from being able to change it. I would like to be able to set the parameter (for example, the homepage) AND let the user change it if he wants to.
At the moment, with this method, every parameter I set is not changeable by the user. It's locked and no one can change it except by changing the GPO itself.

This causes me problems when a user with a laptop wants to use it outside our network. He has to change the proxy settings (to use a direct connection instead of a proxy) but he cannot do it.
The other problem is in ForecastFox. I can set a location for the weather but I cannot set another one because the location is locked.
I guess I have to change the GPO for a USER SIDE GPO and not a MACHINE SIDE GPO. I'll try this if I can but I'm not sure the extension will read this in the HKCU section.
I'll ask Mark if it's something he can do and let you know here.

I hope this is clear enought to help you all.

Edit : I just noted that Marks says it's also working for the HKCU keys so I'm gonna try right now

Edit 2 : Mark just gave me the solution to my problem. The keys have to be in the FireFox section and not the Locked section.
If the ADM file contains this :
CLASS MACHINE

CATEGORY "Mozilla Firefox Group Policy Settings"
KEYNAME "Software\Policies\ADM\Firefox\Locked"

All the settings will be locked and unchangeable by the user.

If the ADM file contains this :
CLASS MACHINE

CATEGORY "Mozilla Firefox Group Policy Settings"
KEYNAME "Software\Policies\ADM\Firefox"

The settings won't be locked.

You can mix both and make a locked and not locked ADM file that will apply them both. If the options are set in both locations, the locked location will be used.

I, now, have exactely what I was looking for.
I'm happy :D :D :D :D :D :D

Jiellen_27
Posts:3
Joined:Thu Nov 04, 2010 12:32 am

Re: Having troubles getting mozilla.adm working

Post by Jiellen_27 » Thu Nov 04, 2010 12:39 am

Some answers will tell you to modify a file called "prefs.js". Please be careful when doing that and make a copy of this file before making any changes. There needs to be a semicolon (;) at the end of each line and an empty line at the end of the file. If something is not changed/entered correctly in this file, it may lead to this error, possibly causing Mozilla to not work. If that happens, simply replace the modified version of "prefs.js" with the backup copy you made.
It is safer to either edit the preferences or add new ones in Mozilla itself by typing about:config in Mozilla's address bar (this only works in newer versions of Mozilla and Netscape 7.1) or to create a file called "user.js" in the same directory as "prefs.js" where you can add new preference(s). This will work in all versions of Mozilla and Netscape 6/7. To do so, simply create a new text file, edit it in a text editor like Notepad and change the file extension from ".txt" to ".js" when you have saved your changes. Mozilla will automatically copy the new preferences you have added to "prefs.js" the next time you run it.
Remember: All these instructions are to my best knowledge correct and work. However, you are making any changes / applying any settings at your own risk!

Post Reply