Phil Peterson <[EMAIL PROTECTED]> writes:
> David Durkee wrote:
> 
> > Dear Csaba, Dan and Kevin,
> > 
> > IMHO you will probably find the following link helpful:
> > http://docs.iplanet.com/docs/manuals/communicator/ldap45.htm
> 
> Hey, someone actually reads that stuff. Cool!
> 
> > ) Which leads to the second issue, which I think is that at least in
> > Netscape there are many "default" settings that can be changed in the
> > pref.js file if a new setting is specified. BUT they do not need to be
> > specified because they are "obviously" default. (you must love
> > self-documenting code) 
> 
> This is a pretty important point. As you can see in the doc above, the 
> 4.x LDAP preferences have a *ton* of different settings which can be 
> specified in the prefs infrastructure (netscape.cfg, all.js, prefs.js). 
> The LDAP prefs C code (libmisc/dirprefs.c) goes to great length to avoid 
> dumping default values into the prefs.js file, which would bloat the 
> file considerably, making it harder to read and slower to parse.

This is very good to know.

> Of course, the compiled-in prefs files make it easy to avoid putting 
> default values in the prefs file *if* you know the name of the pref at 
> compile-time, but since the LDAP pref names are dynamically generated, 
> we had all that yucky C code to do the same thing.
>
> I think alecf and/or sspitzer solved that problem in a parallel way for 
> mail/news accounts in mozilla (although I do see some bloat in my prefs 
> file).

To some extent, we're starting over with a new set of prefs, largely
stored in URI format.  But once we get to the point of working on the
more advanced preferences, we'll see what parts of the 4.x pref set we
can keep using.  And perhaps bug alec or seth to find out more about
their strategy.  :-)

> -- Phil. (LDAP alumnus scanning the group at dmose's request)

Muchas gracias; this is exactly the sort of help I was hoping for!

Dan


-- 

Reply via email to