所以我只想创建一个到我的 LDAP 服务器的连接:
var ldap = require('ldapjs');
var client = ldap.createClient({
url: 'ldap://192.168.200.35:389'
});
但无论我为 url 输入什么:
TypeError: ldap://192.168.200.35:389 is an invalid LDAP url (scope)
与 Apache Direct Studio 连接工作正常。我还会收到运行时警告:
Module not found: Error: Can't resolve './src/build' in 'C:\...\node_modules\dtrace-provider'
有没有人修复这个错误?