fix regression that caused autoconfig to fail unless ldap was build, r=dmose, sr=mscott 240897

This commit is contained in:
bienvenu%nventure.com 2004-04-26 20:04:36 +00:00
Родитель 621e529bcc
Коммит 36c150e433
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -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,7 +165,10 @@ function getLDAPAttributes(host, base, filter, attribs) {
+ "?sub?" + filter;
var ldapquery = Components.classes[LDAPSyncQueryContractID]
.createInstance(nsILDAPSyncQuery);
// user supplied method
// default to LDAP v3
if (!gVersion)
gVersion = Components.interfaces.nsILDAPConnection.VERSION3
// user supplied method
processLDAPValues(ldapquery.getQueryResults(url, gVersion));
}
catch(e) {