Comments (28)
Grrr. This came up on restify too.
So, answering your questions in reverse. DTrace is in ldapjs as if you're on a platform that supports DTrace (Solaris/Mac), an ldapjs server has built-in DTrace probes so you can get real-time metrics from a server instance. We use it every day.
To your second question...well, it should be working on Ubuntu, as the dtrace plugin is basically #ifdef
'd out for non-compliant platforms. Did you get your node via apt, or did you hand install? And what version? If it's not 0.6, and it wasn't built from source, try that.
Lastly, there is a better way forward here, which is for me to change ldapjs to use optionalDependencies and add some JS stubs for DTrace such that even if installation fails, we can keep going. I did that for restify, although the catch is, it requires npm 1.1.5, which doesn't yet exist. I'll leave this ticket open to do that work in ldapjs (I'm a bit wrapped up in other things, at the moment, so it'll be maybe a week before I get back in here).
m
from node-ldapjs.
Thanks a lot. I have solved it. I reinstall ldapjs by npm and solve it.
I used to install dtrace-provider in the directory node_path, but I find it's necessary to install under the folder ldapjs/node_modules/.
from node-ldapjs.
Oh - yeah, that changed a while ago in node in general.
from node-ldapjs.
sudo npm install dtrace-provider
worked for me too on ubuntu 11.10
from node-ldapjs.
I just ran into this same issue. Reinstalling through NPM didn't fix it for me :\
from node-ldapjs.
same here. any suggestions?
from node-ldapjs.
Same problem :(
Using debian.
root@bridge:~/people# nvm ls current
v0.8.1
root@bridge:~/people# npm -v
1.1.33
npm list ...
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └── [email protected]
from node-ldapjs.
When I tested on my Mac OS X I did not run into this problem.
from node-ldapjs.
I have the same problem.
I am using Ubuntu 12.04 with these versions:
nodejs: 1.1.4
├─┬ [email protected] extraneous
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └─┬ [email protected]
│ └── [email protected]
My Testprogramm:
var ldap = require('ldapjs')
var client = ldap.createClient({
url: 'ldap://ip-address:389'
});
client.on('connect', function(connection) {
console.log('connection')
console.log(connection);
})
client.bind('cn=Administrator, cn=Users, dc=mydomain, dc=local', 'password', function(err) {
console.log('binding')
console.log(err)
var opts = {
filter: '(cn=*)',
scope: 'sub',
timeLimit : 0
};
client.search('dc=mydomain,dc=local', opts, function(err, matched) {
console.log(matched)
console.log(err)
});
});
The console-ouptut is:
[Error: Cannot find module './DTraceProviderBindings']
The connection - params are outputed well.
the return values of "err" are NULL
the matched result is {} ... but there are some container in the subtree of specified search. When i run ldapsearch i do recieve a set of searchresults.
Can somebody help with this issue?
Tanks.
from node-ldapjs.
ok, i did not solve the issue with the DTraceProvider, but at the moment i accept it as a warning and not as an error.
I found the error in my coding by using wireshark and finally understood it, that the result of a search-request is a searchEntry forEach matching result and not only one resultset.
I know, this text is nearly the same like it is mentioned in the API of ldapjs, but it took a while for me to understand it :-)
from node-ldapjs.
Having the same issue here. Treating it as a warning, but I'd still like to get rid of it; it's kind of annoying that one of the five lines my server prints is this ugly error.
How can we suppress or fix this error?
from node-ldapjs.
Is there way for this to be a warning outputted to stdout instead of an error output to stderr?
from node-ldapjs.
Just upgraded to 0.6.2, and I don't see this error (warning) anymore! Has this been fixed?
from node-ldapjs.
I still have this problem in OSX.
from node-ldapjs.
I am seeing this with node 0.10.0 and [email protected], too. Here's what gets printed out:
[Error: Symbol DTraceProviderBindings_module not found.] { [Error: Cannot find module './build/default/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' } { [Error: Cannot find module './build/Debug/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
from node-ldapjs.
had the same issue on OSX with NodeJS v0.10.1, but uninstall restify and/or ldapjs and npm install again...will fix your issues. See #89
I don't know if this is a npm-issue but it seems that you need to force reinstalling previous installed dtrace-modules?
(Warnings still exist, but no errors or code that stops running.)
from node-ldapjs.
@joeyvandijk I just upgraded to node 0.10.1, uninstalled and reinstalled restify, to no avail. Here's a look at the relevant portion of my npm ls:
├─┬ [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ └─┬ [email protected] │ └── [email protected]
from node-ldapjs.
@euskode have the same packages list but do not understand your problem. Still warnings, but not working? And do you use OSX?
from node-ldapjs.
@joeyvandijk everything works, I just get the errors, so this isn't a massive issue in any way, but I do want everyone to know that the error messages are still very much present.
from node-ldapjs.
The error messages going to stderr are not from restify, but node. I can't
fix those, because that's what optionalDependencies that aren't found do in
node core. This has come up many times before, and I as I always say,
please go tell node to stop spewing to stderr.
On Thu, Mar 28, 2013 at 11:40 AM, Mikel Cármenes Cavia <
[email protected]> wrote:
@joeyvandijk https://github.com/joeyvandijk everything works, I just
get the errors, so this isn't a massive issue in any way, but I do want
everyone to know that the error messages are still very much present.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/64#issuecomment-15606645
.
from node-ldapjs.
Seeing the same thing on clean install...
OS X 10.8.4
➜ proxy node -v && npm -v
v0.10.15
1.3.5
➜ proxy npm install dtrace-provider express passport passport-ldapauth ldapjs
➜ proxy node auth.js
[Error: Symbol DTraceProviderBindings_module not found.]
{ [Error: Cannot find module './build/default/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/Debug/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
➜ proxy cat auth.js
var express = require('express'),
passport = require('passport'),
LdapStrategy = require('passport-ldapauth').Strategy;
var OPTS = {
server: {
url: 'ldap://localhost:389',
adminDn: 'cn=root',
adminPassword: 'secret',
searchBase: 'ou=passport-ldapauth',
searchFilter: '(uid={{username}})'
}
};
var app = express();
passport.serializeUser(function(user, cb) {
return cb(null, user.dn.toString());
});
passport.use(new LdapStrategy(OPTS));
app.configure(function() {
app.use(express.bodyParser());
app.use(passport.initialize());
});
app.post('/login', passport.authenticate('ldapauth'), function(req, res) {
res.send({status: 'ok'});
});
from node-ldapjs.
I'm having this same problem. Has there been any resolution?
from node-ldapjs.
+1
from node-ldapjs.
The dtrace bindings are optional. If the package is not installed, they should simply be no-ops.
from node-ldapjs.
This issue is also occurring on Meteor 1.0.3.2 / OS X 10.10 when installed via the typ:accounts-ldap package (which wraps ladpjs)
from node-ldapjs.
Same. Error still present through Meteor typ:accounts-ldap package. Why (still) an error for an optional module? No clean solution for this yet?
from node-ldapjs.
Reinstalling restify fixed it for me.
from node-ldapjs.
Reinstalling restify fixed it for me as well.
from node-ldapjs.
Related Issues (20)
- Adding user with password attribute throws error HOT 6
- "No Such Object" when using Client Modify HOT 12
- Integration tests are broken HOT 1
- Filter with umlauts does not work HOT 1
- Inconsistencies between filters api and filter string HOT 1
- RFC6331: Moving DIGEST-MD5 to Historic HOT 6
- SCRAM-SHA-1(-PLUS) + SCRAM-SHA-256(-PLUS) + SCRAM-SHA-512(-PLUS) + SCRAM-SHA3-512(-PLUS) supports HOT 4
- Password for AD user HOT 1
- Request timeout still triggered after an abandon, causing an uncaughtException HOT 1
- client.add() throws "Entry Already Exists" HOT 1
- No support for Norwegian Letters HOT 1
- Non ascii characters in filter not working in client search HOT 1
- Tyring to implement cn=Subschema HOT 2
- Add/Delete group member not working on Windows Active Directory if groupname includes non ascii HOT 3
- No Such Object on modify with latin characters HOT 2
- Operations error with ldap_add in LDAP guide HOT 12
- req.dn is a string in Server.bind HOT 3
- Client event routing issue HOT 4
- How can I obtain detailed information about the password policy? HOT 10
- Unable to match DN in [email protected] version HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-ldapjs.