mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-08 16:03:21 +00:00
Bug 512690 Fix prefcalls.js in autoconfig code for latest LDAP API changes. r=bienvenu
This commit is contained in:
parent
81168234c6
commit
796e8d2758
@ -169,10 +169,14 @@ function setLDAPVersion(version) {
|
||||
function getLDAPAttributes(host, base, filter, attribs) {
|
||||
|
||||
try {
|
||||
var url = Components.classes[LDAPURLContractID].createInstance(nsILDAPURL);
|
||||
|
||||
url.spec = "ldap://" + host + "/" + base + "?" + attribs
|
||||
+ "?sub?" + filter;
|
||||
var urlSpec = "ldap://" + host + "/" + base + "?" + attribs + "?sub?" +
|
||||
filter;
|
||||
|
||||
var url = Components.classes["@mozilla.org/network/io-service;1"]
|
||||
.getService(Components.interfaces.nsIIOService)
|
||||
.newURI(urlSpec, null, null)
|
||||
.QueryInterface(Components.interfaces.nsILDAPURL);
|
||||
|
||||
var ldapquery = Components.classes[LDAPSyncQueryContractID]
|
||||
.createInstance(nsILDAPSyncQuery);
|
||||
// default to LDAP v3
|
||||
|
Loading…
x
Reference in New Issue
Block a user