Thanks Jan
I've updated my doc pointing to the online byteshifter...
Jan Steffen wrote:
Title: Mozilla AutoconfigJan Steffen schrieb:
Wouldn't it be possible to have a litte online Byte-shifter?
So everybody could convert a personal mozilla.js to mozilla.cfg with some copy&paste.
Replying to myself. Just found what is asked for http://www.alain.knaff.lu/howto/MozillaCustomization/cgi/byteshf.cgi Nice and useful site BTW
Jan
Mozilla Autoconfig
| About Mozilla Autoconfig | |
| Mozilla Autoconfig allows an administrator to configure default Mozilla preferences either from a central file, by getting parameters from a central directory (LDAP), or both. This document shows how to configure mozilla to use autoconfig, how to set default parameters and how to read settings from a central LDAP server. | |
| Autoconfig Overview | |
| Mozilla autoconfig basically just gets a set of preferences either from LDAP or from a configuration file and sets these as part of starting Mozilla. You are able to set the preferences as default (so the user can overwrite them), or locked down (stopping users from changing them). You need to change update your installation of Mozilla to reference the configuration file. You also need to create the configuration file and then encrypt it using the moz-byteshift.pl script (which requires perl). You also need an LDAP server if you are going to be getting user preferences from LDAP. | |
| What you need to get started | |
|
To get started you'll need: 1. Download the moz-byteshift.pl script from http://www.mozilla.org/blah/moz-byteshift.pl or from http://www.alain.knaff.lu/~aknaff/howto/MozillaCustomization/cgi/byteshf.cgi 2. Ensure you have a machine with a working copy of perl on it. NB: Steps 1 & 2 can be skipped if you use the online byte-shifter found at http://www.alain.knaff.lu/howto/MozillaCustomization/cgi/byteshf.cgi 3. A machine with Mozilla installed (preferably Mozilla 1.8b2 or later) – see fixing earlier versions of Mozilla and bug 4. I've done all my testing using a Windows version of Mozilla - there is no reason why it should not work under another OS |
|
| Creating a basic configuration file | |
Create your configuration file –
lets call it mozilla.js (or your companyname.js) using a text editor
and put in the preferences that you want and then save it.
For Mozilla to your configuration file it must be byte-shifted using the moz-byteshift.pl script perl moz-byteshift.pl -s 13 < mozilla.js > mozilla.cfg |
|
| Deploying your configuration file and testing | |
Edit the all.js file :(the
default location is c:\program
files\mozilla.org\mozilla\defaults\pref\all.js) to include the
following two lines at the end
Copy your mozilla.cfg file into the mozilla directory (c:\program files\mozilla.org\mozilla) |
|
|
Using LDAP |
|
|
This is not much more complicated. In the example I'm getting per-user preferences from LDAP. I therefore need to know who the user is before I can search for them. This is done by reading the environment variable (who the user has logged into their workstation as) and then running an ldap query use the following example to create your mozilla.js file and
the
follow the steps as above
|
|
| <Autoconfig setup> <Last updated: August 04, 2004 Simon Annear> |
