You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 14, 2024. It is now read-only.
Hello, I'm sort of stuck. Having successfully binded and performed search queries in simple bind mode i get an error when i perform the same queries after binding in starttls mode. Here's a snippet of the code
varou='ou=foo,dc=example,dc=bar'varopts={scope : 'sub'}vardosomething=function(err,res){assert.ifError(err)console.log(res);}varexecuteSearch=function(base,searchoptions,fn){//NOTE: cli binded and starttls called in bind callbackcli.search(base,searchoptions,[],function(err,res){vararr=[];if(err)returnfn(err);res.on('searchEntry',function(entry){arr.push(entry.object);});res.on('error',function(err){console.error('the following error occured: \n'+err);fn(err);});res.on('end',function(result){fn(null,arr)});});}executeSearch(abase,opts,dosomething)
I am having this same issue, running the query without StartTLS works flawlessly, however once i use StartTLS it claims it can't find the exact same object.
So this appears to be an issue with calling starttls -after- binding, rather than before, i also had some trouble with nested callbacks that would make wrapper.js freak out, so i just inlined all my code for my project.
client.starttls would be something you perform immediately after creating the client and before performing any other operations. So at the least, this could use some better documentation. A PR would be welcome.
Hello, I'm sort of stuck. Having successfully binded and performed search queries in simple bind mode i get an error when i perform the same queries after binding in starttls mode. Here's a snippet of the code
here's the error stack:
The text was updated successfully, but these errors were encountered: