Questions tagged [ldapjs]

ldapjs is a pure JavaScript, from-scratch framework for implementing LDAP clients and servers in Node.js. It is intended for developers used to interacting with HTTP services in node and express.

ldapjs is a pure JavaScript, from-scratch framework for implementing LDAP clients and servers in Node.js. It is intended for developers used to interacting with HTTP services in node and express.

ldapjs implements most of the common operations in the LDAP v3 RFC(s), for both client and server. It is 100% wire-compatible with the LDAP protocol itself, and is interoperable with OpenLDAP and any other LDAPv3-compliant implementation.

120 questions
0
votes
0 answers

ldapjs returns nothing, but ldapsearch works and debug log shows `SearchEntry` returned

I have an issue similar to Ldapsearch to ldapjs conversion, except for I think I already use the scope correctly. My code is like this: const ldap = require('ldapjs'); var client = ldap.createClient({ url:…
davidpodhola
  • 1,030
  • 10
  • 17
0
votes
1 answer

Authentification with ldap without user's password

I am trying to create login authentication with ldap js. I set up all Credentials and everything is working fine, but the problem is I can bind a user just with his Uid (user id aka username), it didn't ask for a password and I don't know how to fix…
user10817219
0
votes
1 answer

Render an image byte stream on angular client side app

I have a NodeJS / Express RESTful API that proxies requests from an Active Directory LDAP Server. I do this because LDAP queries tend to be slow. I use the RESTful API to cache and refresh data intermittently. I recently attempted to add the…
thxmike
  • 614
  • 1
  • 7
  • 25
0
votes
1 answer

NodeJS - LDAPJS Error : events.js:160 throw er; // Unhandled 'error' event

all I am new to nodejs and I am facing this issue while executing my node file. I am on centos 7. When I am trying to connect to LDAP using LDAPJS. It works fine when LDAP is available but then it cannot connect to server it show this weird error :…
Rajan
  • 2,427
  • 10
  • 51
  • 111
0
votes
1 answer

Nodejs ldapjs activedirectory - Password reset without knowing current password

In Nodejs how to reset active directory password without knowing the current password? I use the below 2 libraries at the moment. https://www.npmjs.com/package/activedirectory http://ldapjs.org/index.html I have the below code which works perfectly…
Jay
  • 9,189
  • 12
  • 56
  • 96
0
votes
1 answer

ldapjs-client V0.1.0 bind method throwing UnwillingToPerformError after working fine for few days

I am facing a weired issue on ldapjs-client V0.10.0 with fastify V1.1.1 Below snippet working fine for couple of day. Suddenly throwing UnwillingToPerformError. It is working fine if we restart the server again,error is same after couple of…
technaag
  • 26
  • 3
0
votes
1 answer

Active Directory/Ldap Get DataType or Syntax of specific attributes in NodeJS

I am able to query active-directory/ldap to get the user information along with custom attributes. However I would to know the underlying DataType/attributeSyntax for each of those attribute returned. Another the problem is that the query will not…
0
votes
0 answers

LdapJS exop Request timeout

I have an LdapJS server which implements standard operation and an extended operation to check health: const server = ldap.createServer(); server.exop('healthcheck', (req, res, next) => { res.end(); console.log('ended'); return…
Marco Stramezzi
  • 2,143
  • 4
  • 17
  • 37
0
votes
1 answer

LDAP-Server using ldapjs on TypeScript

I want to host an LDAP Server using ldapjs. Sadly there is no documentation for TypeScript yet. So I found the typings in @types/nodejs but there are no server methods present: import ldap = require('ldapjs') let server = ldap.createServer() This…
Lion
  • 16,606
  • 23
  • 86
  • 148
0
votes
1 answer

Is it possible to get all member details of group in Active Directory?

I am querying AD with cn='group_name' and I am getting all the members of group which contains only CN='Employeeid'. But is it possible to get all members details which includes firstname, email, lastname of members of group in one query?
Test Mail
  • 169
  • 3
  • 15
0
votes
2 answers

ldapjs connecting to LDAP (ldap.forumsys.com) fails

Here is an online LDPA test server, http://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/ So I did some simple script to test it but I am always getting unwanted response. Here is my code: const ldap =…
Will Hu
  • 149
  • 2
  • 15
0
votes
2 answers

Ldapjs search does not appear to end

I'm new to ldapjs and ldap in general. I have the following code currently: var search = client.search(base, opts, function(err, res) { assert.ifError(err); res.on('searchEntry', function(entry) { console.log('entry: ' +…
0
votes
1 answer

getting Error as 'Error: Can't set headers after they are sent' in my node.js service

Below is my code, app.get("/getList", function (req, resp) { process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; var client = ldap.createClient({ url: 'ldap://my_ip:389' }); client.bind('cn=pratik', 'pratik', function (err) { …
pratRockss
  • 455
  • 8
  • 25
0
votes
1 answer

LDAP, List groups I am a member of using wildcard?

So I'm writing an application backend in ExpressJS which authenticates against our domain using LDAP. I've got 3 AD groups. Foo Foo_bar Foo_bert How do I ask LDAP "Any groups starting with Foo*, what groups am I a member of?" with the response…
Alistair Hardy
  • 397
  • 1
  • 4
  • 16
0
votes
1 answer

How to connect and find a user from Azure AD using Nodejs

I am trying to find a user from the azure active directory using nodejs. I am using Node-ActiveDirectory for this task. First I tried to connect to the Azure active directory as the given example in the above link. example code as below that I have…
Roledenez
  • 751
  • 4
  • 16
  • 43