William Bayer wrote:
> We successfully made the manual edits to the prefs.js file, enabling 
> Mozilla to perform LDAP Address book searches of our internal Directory 
> server. This is a feature our users have come to rely on in Netscape 4.7x.
> 
> Since we are unwilling to hand edit every prefs.js file, the lack of a 
> UI for this feature is considered a show stopper for deploying Mozilla 
> to our 600+ corporate users. We would appreciate inclusion of the LDAP 
> Address book UI feature as soon as possible.
> 
> Has any progress been made on integration between Calendar and the USR 
> Palm Pilots? This is another useful feature, but not considered a show 
> stopper for our corporate Mozilla deployment.
> 
> Thanks,
> 
> William Bayer
> Manager, I.T.
> Komatsu Canada Limited
> 

For 600+ corporate users I think I can safely assume the following:
1) you'll have automatic software installation which supports pre- and 
    post execution of command files.
2) you have login scripts all users are executing.
3) you are using Windows NT 4.0 or W2K or WinXP

I'll attach a little command file you can execute as post installation 
procedure or in your login script. It should work with all mentioned NT 
versions ( see 3)) and maybe with 95, 98 and ME, too.

There are only a few lines to edit. I don't want to abuse you by 
explaining things which are anyhow very obvious - so just have a look at 
my file and use it if you like it.

Cheers
Roland

PS: Have you actually thought, if there were a UI for setting the LDAP 
server, to tell ALL your 600+ users to set this by hand?? My command 
file is far from perfect but I'm totally convinced that the success rate 
with it is much higher than by telling the users to do it by hand. (At 
least it didn't work with my 400 users ;-) )




rem @echo off

setlocal

rem # path where the preferences file is located
set prefs_path=H:\AppData\Mozilla

rem # preferences file name 
set prefs_file=prefs.js

rem # prefs prefix
set ldap_prefs_def=ldap_2.servers.roka2.

rem # this name appears in the directory server list
set ldap_prefs_description_value=RoKa LDAP

rem # ??? don't know but it's im my prefs
set ldap_prefs_filename_value=roka2.mab

rem # the uri - servername+basedn
set ldap_prefs_uri_value=moz-abldapdirectory://server.domain.net:389/o=org,c=AT

rem # the rest you shouldn't need to edit !!!

set ldap_prefs_uri=uri
set ldap_prefs_description=description
set ldap_prefs_filename=filename
set ldap_prefs_dirType=dirType
set ldap_prefs_dirType_value=777
set ldap_prefs_lastChangeNumber=replication.lastChangeNumber
set ldap_prefs_lastChangeNumber_value=0

rem errorlevel=0 found; errorlevel=1 NOT found
find /I "%ldap_prefs_def%" "%prefs_path%\%prefs_file%"
echo %errorlevel%
if %errorlevel% == 1 (
        echo user_pref^("%ldap_prefs_def%%ldap_prefs_description%", 
"%ldap_prefs_description_value%"^); >>"%prefs_path%\%prefs_file%"
        echo user_pref^("%ldap_prefs_def%%ldap_prefs_dirType%", 
%ldap_prefs_dirType_value%^); >>"%prefs_path%\%prefs_file%"
        echo user_pref^("%ldap_prefs_def%%ldap_prefs_filename%", 
"%ldap_prefs_filename_value%"^); >>"%prefs_path%\%prefs_file%"
        echo user_pref^("%ldap_prefs_def%%ldap_prefs_lastChangeNumber%", 
%ldap_prefs_lastChangeNumber_value%^); >>"%prefs_path%\%prefs_file%"
        echo user_pref^("%ldap_prefs_def%%ldap_prefs_uri%", 
"%ldap_prefs_uri_value%"^); >>"%prefs_path%\%prefs_file%"
)

Reply via email to