117 questions
0
votes
0
answers
58
views
SizeLimitExceededError in AD ldapjs while retrieving users with cookie
Library used: ldapjs:2.3.3
I am using ldapjs, PagedResultsControl to paginate in AD users. It works fine with most of the instances. For one of the instances, I am able to fetch 500 users on the first ...
0
votes
1
answer
206
views
When I make a TLS LDAP connection in Node.js what parameter should I include?
Here is my code:
import ldap from 'ldapjs';
try {
let config = {
.......................
tlsOptions: {
cert : [fs.readFileSync("host.cer")],
ca:...
1
vote
1
answer
150
views
nodejs -> ldapjs... why the returned value is undefined and the real value of client.bind comes second?
On my server side (Node.js), I have a file that calls a function (ldapjs) in another file but the returned value is undefined. The true value of client.bind is then displayed but it is not returned to ...
1
vote
2
answers
433
views
Retrieving User Information from LDAP Active Directory Server with Node.js using ldapjs package
I'm trying to create a function that fetches all details for a user from the Active Directory using ldapjs in Node.js. Here is the function I'm using:
const ldapConfig = {
url: 'ldap://your-ldap-...
4
votes
1
answer
520
views
res.on("searchEntry") from Ldap.js does not returns result in Next.js Production mode
Need some help and advice with my problem. In my Next.js application (14.1) I did authorization with next-auth (5.0.0) and ldap.js (3.0.7).
Process goes as follow:
User Enters credentials.
Server ...
0
votes
1
answer
69
views
How can I retrieve detailed error information from ldapjs?
I'm working in the Ubuntu 20.04 and openLDAP 2.4.49 environment.
How can I retrieve detailed error information from ldapjs?
(ldapjs version is 3.0.5)
For example, if I change the password immediately ...
0
votes
1
answer
131
views
InvalidDnSyntaxError when I try to create a new AD user with ldapjs
I am attempting to create a user through ldapjs, here is my code:
async onboardUser(targetUser, ou) {
targetUser.distinguishedName = `cn=${user.username}, ${ou}`;
return new Promise(...
0
votes
1
answer
543
views
Error: modification must be an Attribute on groupOfNames member modify ldapjs
I have a code that should add an user to a groupOfNames in ldapjs
function addUserToGroup(userDN, groupName, callback) {
const groupDN = `cn=${groupName},ou=groups,dc=XXX`;
console.log(...
0
votes
1
answer
234
views
How to active a user after creating one with LDAP.JS/LDAP.TS?
I'm using LDAP.TS to automatize the users creation from glpi(don't matters on this history);
So, after create the user, he becomes disabled, from my researchs, the property i need to pass on the ...
0
votes
1
answer
1k
views
Using LDAPJS to change password stores password differently from how Weblogic Console sets the password?
I'm using ldapjs (3.0.0) to change the password of a user in a Weblogic LDAP directory.
I also have some legacy webservice (which I don't have access to source code).
The webservice API does the ...
1
vote
2
answers
691
views
Cannot retrive objectName from searchEntry when I update ldapjs to v3
I recently upgraded the package ldapjs from v2 to v3. When I search for a user attribute with searchEntry, I get an empty object, but all others functions worked without a problem, this is my code:
...
1
vote
0
answers
231
views
TypeError: Cannot read properties of undefined with next-auth and ldapjs
I am trying to set up LDAP authentication in my application, but I have an error.
When I click on the button, the form becomes empty, and nothing happens.
I try again, and I have the following error :
...
0
votes
1
answer
117
views
NodeJS app does not authenticate in Windows Server 2008
I have an app built with NodeJS v18 (running on a Debian 11 docker container) that tries to authenticate in an Active Directory running on Windows Server 2008. I'm using ldapjs.
The authentication ...
1
vote
1
answer
168
views
Why isn't my ldapjs code displaying error?
I'm very new to ldapjs, and am trying to write an authenticate(username, password) script.
The steps I'm eventually trying to write are:
bind to the admin, and I want to check for errors to see if ...
-1
votes
1
answer
99
views
Create OU using ldapjs
I am using ldapjs and explore complete library and could not be able to find how to create OU. Kindly share with example and code explanation.
0
votes
1
answer
43
views
Getting to connect users with an ldap with two groups
I have an application with which I would like to connect my ldap users.
I want two types of users to be able to log in: internal and external.
In the application that I deploy, three parameters are ...
0
votes
1
answer
194
views
No match when searching a (Docker) Server using ldapjs
I have an Ldap Server running on Docker + ldapjs. This server is adding a set of records that I am trying to search for with the client.
A sample user object looks like below:
{
user: 'cn=...
0
votes
1
answer
1k
views
LDAP directory search error 52e with Nodejs
I was able to run it with C# but not with NodeJs. C# code is running successfully.
DirectoryEntry directoryEntry = new DirectoryEntry("LDAP://abc.local", userName, password); ...
0
votes
1
answer
933
views
nodejs with ldapjs authentication possible without password
I gonna write a API which get a Username and password from the Front-End. This username and password get passed into my LDAP bind and should get checked if these informations are correct. Now I got ...
0
votes
1
answer
183
views
Can we connector to Azure AD using a nodejs protocol based library
We are planning to integrate with Azure AD and have explored Graph API.
We were thinking if we can connect to Azure AD using a protocol based implementation something like this.
http://ldapjs.org/...
3
votes
1
answer
2k
views
ldap Invalid Credentials While Authenticating User(NodeJs)
There are two Active Directory (LDAP Servers). Following are the users which belongs to their servers respectively.
Server user password
1- abc.pk ...
0
votes
1
answer
160
views
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, ...
2
votes
1
answer
3k
views
how to resolve ECONNRESET error in ldapjs?
I am working with LDAP JS. I am receiving ECONNRESET Error again and again, I also tried to browse it but no success. tried to add reconnect: true qualifier but no success. my code and error is as ...
0
votes
1
answer
65
views
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 ...
2
votes
1
answer
563
views
ldapjs advanced search on subtree
Iam using ldapjs library for my project with standard LDAP server and iam trying to using search(). Its working right until i want to return results.
So i believe its more my misunderstanding of how ...
1
vote
0
answers
277
views
Ldapjs is not returning error if not searched
I am trying to implement functionality where I can login with openldap.
for that I am using ldapjs client API - http://ldapjs.org/
Below are my steps for login
Get username and password from web form ...
1
vote
1
answer
3k
views
How to get profile of user I have binded as using ldapjs
I'm using ldapjs package. I'm using this code, which allows me
bind using readonly credentials to ldap server and extract one of users profile from ou=people.
'use strict';
// Figure 1
const ldap = ...
1
vote
0
answers
72
views
How does a trusting Active Directory domain controller validate credentials that exist only in the trusted domain?
Suppose an Active Directory domain controller smallapp.local which trusts another domain bigenterprise.local.
There is a user Alice in the bigenterprise.local and she is able to login into smallapp....
0
votes
1
answer
3k
views
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. ...
1
vote
1
answer
1k
views
ldapjs handling client.search response
I have the below code which is binding to an LDAP server and I want to return the user that I have added "ab" within the "interviewees" group (code taken from ldapjs client api ...
0
votes
2
answers
1k
views
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 ...
40
votes
6
answers
68k
views
error Your lockfile needs to be updated, but yarn was run with `--frozen-lockfile`
I have an issue regarding one dependency in my yarn.lock file. The issue is with ldapjs, the latest version has a bug regarding special characters in user or password so I want to freeze it in the ...
0
votes
1
answer
713
views
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 ...
2
votes
0
answers
635
views
How do you update a thumbnailPhoto in Active Directory using NodeJS and ldapjs?
I'm new to working with Active Directory in general. I'm trying to update the thumbnailPhoto attribute using ldapjs npm package I have my code setup to be able to update attributes in general and it ...
0
votes
1
answer
2k
views
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,...
0
votes
1
answer
103
views
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 ...
2
votes
2
answers
2k
views
Ldapjs can't connect with a server
So I just want to create a connection to my LDAP server:
var ldap = require('ldapjs');
var client = ldap.createClient({
url: 'ldap://192.168.200.35:389'
});
But no matter what I'll input for the ...
0
votes
0
answers
445
views
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://<<...
0
votes
1
answer
2k
views
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 ...
0
votes
1
answer
954
views
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: '...
1
vote
1
answer
2k
views
LDAP Protocol and Connection in ReactJS
I am currently trying to build a proof of concept build of an LDAP connector in electron/Reactjs. My two main goals of building this connector are to be able to check if the user enters the correct ...
1
vote
1
answer
3k
views
How can i set account options in active directory with ldapjs?
I have uses ldapjs module of nodejs to interact with my active directory.
i can bind and add user into the active directory with these functions...
ldapOptions = {
url: //my ldap server ip,...
0
votes
1
answer
322
views
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 ...
0
votes
0
answers
148
views
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 ...
1
vote
1
answer
3k
views
Error: getaddrinfo EAI_AGAIN undefined (ldapjs)
So, i tried to deploy my Express.Js app to my vps, but I get some error that refined to Error: getaddrinfo EAI_AGAIN undefined. The weird part is, it is doing just fine if I run this app on my ...
0
votes
1
answer
670
views
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 ...
0
votes
1
answer
213
views
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://<<host>>:389'
});
...
0
votes
1
answer
488
views
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://<<host>>:389'
});
...
1
vote
1
answer
1k
views
How to modify memberOf field via ldapjs
When i try to pass memberOf field in JS dict during creation of a member or even to edit it after via
const change = new Change({
operation: 'replace',
modification: {
[field]: value
...
1
vote
1
answer
467
views
Retry logic for connecting to backup ldap servers using ldapjs on nodejs
I have a primary ldap server url, say urlA and multiple backup server urls in a list. If the connection couldn't be made to the primary ldap server, the backup servers will be tried in the order they ...