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
1 answer

Error while connecting Nodejs with LDAP in GCP cloud function

I am getting the below error while connecting to LDAP using nodejs in GCP cloud function Error: TypeError: options (object) required at Object.createClient Index.js exports.helloWorld = (event, context) => { const gcsEvent = event; var username…
Sang
  • 21
  • 1
  • 3
0
votes
1 answer

Calling a Promise Method from another Promise

Hope everyone of you are doing well. I am stuck in a bit of problem. Any help will be highly appreciated. I am using ldapJS and I want to call another promise from searchEntry method of LDAPJS. When i write the code same as below. it throws an…
Asad Mehmood
  • 292
  • 2
  • 10
  • 20
0
votes
1 answer

Search in ldapjs

I am trying to use the search method of Ldap.js in my node.js code. Here is my code for the client side. It adds successfully a user, but searching for the newly added user does not yield any results. (The ldap server is running in a docker…
malte238749874
  • 159
  • 2
  • 12
0
votes
2 answers

How to handle error in ldapjs search method

I must connect to a LDAP server and find user based on a specific ID. I've decided to use ldapjs module. I managed to create my client and bind him so I can search for an user with success. My problem is, as I only use async/await, that I don't…
spMaax
  • 365
  • 2
  • 11
0
votes
1 answer

Creating the Client Control Object for ldapjs server side sorting

Has anyone has success using the server side sorting control with ldapjs? The docs don't provide any specific examples of creating/using such a control object. I have enabled the overlay on the openldap server side, but can't seem to come up with…
0
votes
1 answer

ldap query to search for a user and group

I am trying to use ldapjs node library to search a user inside the group but this doesn't seems working. This is the ldap property: { "dn": "CN=TOM H,OU=GLO_Users,OU=GLOBAL,OU=SITES,OU=Engineering,DC=example,DC=com", "controls": [ ], …
undefined
  • 3,464
  • 11
  • 48
  • 90
0
votes
1 answer

Feathersjs validation method using ldapjs module problem

I want to write a function that adds the params of an ldap server after checking if the binding with server is right otherwise the data won't get added in the db ; i have to use feathers js. I tried to write a couple of lines to validate the params…
0
votes
0 answers

Not handling error properly for invalid filter value in ldapjs client API

The ldapjs client API is not throwing proper error when passing incorrect filter data. Below is code snippet: var ldap = require('ldapjs') var client = ldap.createClient({ url: 'ldap://<>:389' }) client.bind(<>,…
0
votes
1 answer

LDAP authentication using ldapjs in nodejs

Am a newbie to node.js, have somewhat figured out the LDAP authentication. Here am trying to retrieve employee ID from the search but none of the search entries are fetched though the passed credentials are bounded successfully , not sure where i'm…
Jeeva
  • 1
  • 3
0
votes
1 answer

How can I pass in an attribute dynamically when modifying a user with ldapJS

I'm using ldapjs and I'm trying to configure my own API to modify/update an LDAP directory and it works OK except when I want to modify an account e.g. var change = new ldap.Change({ operation: 'replace', modification: { company: 'Company…
Chris
  • 5
  • 1
0
votes
1 answer

Is it possible to create entry into LDAP server without RDN with only attributes?

We are using ldapjs node module to communicate with LDAP servers like Microsoft Active Directory, Apache DS and Open LDAP. As per our understanding from here: DNs can be comprised of zero or more components, which means that it is legal to have a…
0
votes
0 answers

Microsoft Active Directory paged result is returning less number of records than page size even though the server has more records

We have Microsoft Active Directory which has 1 million entries. We are using ldapjs node module paging search to retrieve entries from the Active Directory. As per our observation in some retrieve calls the results size returned is less than page…
0
votes
1 answer

Endless loading of my NodeJS API site, if username doesnt exist on my LDAP Server

im trying to program a RestfulAPI with NodeJS, ExpressJS and LdapJS. I want to do a user profile page where the user is able to see his attributes on the LDAP Server and can change them. If i enter a valid uid in the Request-URL the server find the…
Piket95
  • 1
  • 2
0
votes
1 answer

Microsoft Active Directory create computer object operation failing with UndefinedAttributeTypeError for few attributes

Whenever we are trying to create computer object in Microsoft Active Directory as below: var ldap = require('ldapjs'); var client = ldap.createClient({ url: 'ldap://<>:389' }); client.bind('<>', '<>', function(err) { …
0
votes
1 answer

How to know what are the attributes and its values will be populated by Microsoft Active Directory server for particular object?

Whenever I am trying to create the computer object in Microsoft Active Directory as below: var ldap = require('ldapjs'); var client = ldap.createClient({ url: 'ldap://<>:389' }); client.bind('<>', '<>', function(err) { …