зеркало из https://github.com/mozilla/gecko-dev.git
fix regression that caused autoconfig to fail unless ldap was build, r=dmose, sr=mscott 240897
This commit is contained in:
Родитель
621e529bcc
Коммит
36c150e433
|
@ -47,8 +47,7 @@ const PrefServiceContractID = "@mozilla.org/preferences-service;1";
|
|||
// set on a platform specific basis in platform.js
|
||||
platform = { value: "" };
|
||||
|
||||
// default to LDAP v3
|
||||
var gVersion = Components.interfaces.nsILDAPConnection.VERSION3;
|
||||
var gVersion;
|
||||
|
||||
function getPrefBranch() {
|
||||
|
||||
|
@ -166,6 +165,9 @@ function getLDAPAttributes(host, base, filter, attribs) {
|
|||
+ "?sub?" + filter;
|
||||
var ldapquery = Components.classes[LDAPSyncQueryContractID]
|
||||
.createInstance(nsILDAPSyncQuery);
|
||||
// default to LDAP v3
|
||||
if (!gVersion)
|
||||
gVersion = Components.interfaces.nsILDAPConnection.VERSION3
|
||||
// user supplied method
|
||||
processLDAPValues(ldapquery.getQueryResults(url, gVersion));
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче