but I still have lot of problems ... especialy with ldap queries
the getLDAPAttributes functions fails :-(
error popup messages is:
"Error: getLDAPAttributes failed: TypeError:
Components.classes[LDAPURLContractID] has no properties"
Any clues on that (I did removed the --disable-ldap in compile options !)
//simple lockpref that do work :-), just to check that autoconfig did something
//Privacy & Security
defaultPref("signon.rememberSignons", false);
//Get username, for the ldap querie
var env_user = getenv("USER");
/* 2) define processLDAPValues() here (because if set after "3)" below it
doesn't work !) processLDAPValues which is eventually called by
getLDAPAttributes() just below,
check getLDAPAttributes() code from
$MOZILLA_HOME/defaults/autoconfig/prefcalls.js to see the inside call to "user
defined" processLDAPValues
*/
function processLDAPValues (values) {
if(values) {
// set the global var with the values returned from the LDAP query
ldap_values = values;
var uid = getLDAPValue ( values ,"uid" );
var cn = getLDAPValue ( values ,"cn" );
var mail = getLDAPValue ( values ,"mail" );
}
}
// 3) Call Ldap servers to get Ldap Attributes (mail & cn) , this will finally
call processLDAPValues , "2)" just above.
getLDAPAttributes("ldap3.int-evry.fr","ou=people,dc=int-evry,dc=fr","uid=" +
env_user,"uid,cn,mail");
//Debug with popup error messages, that doesn't work anymore :-( !! why ??
var env_mozdebug= getenv("MOZILLA_DEBUG");
if (env_mozdebug) { displayError("NO ERROR , just a test, cn =" + cn); }
// try a simple lockpref for debuugin, that one is never set :-(, code might
crash before that line ?
lockPref("browser.startup.homepage", "http://www.int-evry.fr/");
// Close the try, and call the catch()
} catch(e) {
displayError("lockedPref", e);
}
3. start firefox
Actual Results:
in 1.0.3
popup messages is:
"Error: getLDAPAttributes failed: TypeError:
Components.classes[LDAPURLContractID] has no properties"
in 1.0.4 nothing happens :-( , the file seems to start beeing parse as the first
lockpref is set, but not the lastone at the end of the script
Expected Results:
ldap values get retrieved so that I can set aother preferences base on the email
address of the user grabbed from ldap ! that will be more usefull in thunderbird
actually ...
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.7.8-1.3.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.7.8-1.3.1
firefox 1.0.3 seems to allow autoconfig to work, mit.edu/ ~firefox/ www/maintainers /autoconfig. html www.int- evry.fr/ s2ia/user/ procacci/ netscape/ en/mozilla- autoconfig- en.html
Autoconfig for firefox is VERY well documented on
http://
and partialy (for mozilla 1.x) in my doc
http://
but I still have lot of problems ... especialy with ldap queries classes[ LDAPURLContract ID] has no properties"
the getLDAPAttributes functions fails :-(
error popup messages is:
"Error: getLDAPAttributes failed: TypeError:
Components.
Any clues on that (I did removed the --disable-ldap in compile options !)
Reproducible: Always
Steps to Reproduce:
1. ask for autoconfig:
$ tail -6 /usr/lib/ firefox- 1.0.4/greprefs/ all.js config. obscure_ value', 0); config. filename' , 'firefox.cfg');
// autoconfig jehan
pref('general.
pref('general.
2.
edit the firefox.cfg file
//put everything in a try/catch
try {
//simple lockpref that do work :-), just to check that autoconfig did something "signon. rememberSignons ", false);
//Privacy & Security
defaultPref(
//Get username, for the ldap querie HOME/defaults/ autoconfig/ prefcalls. js to see the inside call to "user
var env_user = getenv("USER");
/* 2) define processLDAPValues() here (because if set after "3)" below it
doesn't work !) processLDAPValues which is eventually called by
getLDAPAttributes() just below,
check getLDAPAttributes() code from
$MOZILLA_
defined" processLDAPValues
*/
function processLDAPValues (values) {
if(values) {
// set the global var with the values returned from the LDAP query
ldap_values = values;
var uid = getLDAPValue ( values ,"uid" );
var cn = getLDAPValue ( values ,"cn" );
var mail = getLDAPValue ( values ,"mail" );
} utes("ldap3. int-evry. fr","ou= people, dc=int- evry,dc= fr","uid= " + "uid,cn, mail");
}
// 3) Call Ldap servers to get Ldap Attributes (mail & cn) , this will finally
call processLDAPValues , "2)" just above.
getLDAPAttrib
env_user,
//Debug with popup error messages, that doesn't work anymore :-( !! why ?? "MOZILLA_ DEBUG") ; "browser. startup. homepage" , "http:// www.int- evry.fr/");
var env_mozdebug= getenv(
if (env_mozdebug) { displayError("NO ERROR , just a test, cn =" + cn); }
// try a simple lockpref for debuugin, that one is never set :-(, code might
crash before that line ?
lockPref(
// Close the try, and call the catch() "lockedPref" , e);
} catch(e) {
displayError(
}
3. start firefox
Actual Results: classes[ LDAPURLContract ID] has no properties"
in 1.0.3
popup messages is:
"Error: getLDAPAttributes failed: TypeError:
Components.
in 1.0.4 nothing happens :-( , the file seems to start beeing parse as the first
lockpref is set, but not the lastone at the end of the script
Expected Results:
ldap values get retrieved so that I can set aother preferences base on the email
address of the user grabbed from ldap ! that will be more usefull in thunderbird
actually ...
Related recents buzilla:
https:/ /bugzilla. mozilla. org/show_ bug.cgi? id=222973 /bugzilla. mozilla. org/show_ bug.cgi? id=225288 /bugzilla. mozilla. org/show_ bug.cgi? id=178685 /bugzilla. mozilla. org/show_ bug.cgi? id=272970
https:/
https:/
https:/
source code I suppose ? lxr.mozilla. org/seamonkey/ source/ extensions/ pref/autoconfig /src/
http://
docs mit.edu/ ~firefox/ www/maintainers /autoconfig. html www.alain. knaff.lu/ howto/MozillaCu stomization/ thegoldenear. org/toolbox/ windows/ docs/mozilla- pre-config. html www.int- evry.fr/ s2ia/user/ procacci/ netscape/ en/mozilla- autoconfig- en.html
http://
http://
http://
http://