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

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 following: authenticate(username, password) …
NL3294
  • 984
  • 1
  • 10
  • 27
0
votes
1 answer

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: client.search(adSuffix, searchOptions,…
GisCat
  • 55
  • 2
  • 13
0
votes
0 answers

How can i change password in LDAPJS?

i'm using this strategy for update a password on ldap server.The function update (the line ldap.update(ldapUserUpdate)) doesn't work. Could someone help me with an updated method or a workaround function, please? Thanks. var gr = new…
Pola
  • 33
  • 5
0
votes
1 answer

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 should run through TLS: var options = { …
0
votes
0 answers

Node.js ldapjs Invalid Credentials

I cant to connect to my Windows server. I'm trying but I don't understand what I'm doing incorrect. This is not my code, I can't understand manual for ldapjs and I would be grateful for help. const ldap = require('ldapjs'); const client =…
0
votes
0 answers

ldapjs bind function not responding?

I'm trying to write authentication code using ldapjs in node.js. It should simply accept username and password, and just return whether the user exists, and if the password is correct. For test, I've used JXplorer to confirm that the DN for the…
NL3294
  • 984
  • 1
  • 10
  • 27
0
votes
0 answers

How to connect to Active Directory using LDAPJS

I'm attempting to connect to an Active Directory domain controller to make some basic LDAP queries using JavaScript. I'm using the LDAPJS library and the built-in node tls module. I'm getting an error when attempting to run client.bind The TLS…
lowcrawler
  • 6,777
  • 9
  • 37
  • 79
0
votes
1 answer

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 taken into account (ldapjs protocol, scope…
Wloqo
  • 1
0
votes
0 answers

Jest Mockup ldap in nodejs

Here is my AD class code I am using ldapjs library and trying to mock its add method but facing some warning which cause code coverage issue const ldap = require('ldapjs'); class AD { /** * Create Connection Active Directory */ …
0
votes
0 answers

LdapJS acting as a proxy to Active Directory

I'm trying to write a custom ldap server, using the ldapjs library, acting as proxy to active directory. All the requests different from "bind" should be forwarded to an Active Directory instance. This is my code: const ldap =…
0
votes
0 answers

Ldap js, check if a user is part of a global group or not

So, I am using Ldap in my project and I have added all the users to a group. Now for a special role access I added few users to another global group: special_role. What I want is to check whether the logged in user has a particular global group or…
0
votes
1 answer

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=first.last,ou=user_group,o=main', info:…
madkimchi
  • 77
  • 1
  • 7
0
votes
1 answer

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); DirectorySearcher dsearch = new…
BroscR
  • 167
  • 2
  • 11
0
votes
1 answer

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 the problem when the use types a wrong password I…
0
votes
1 answer

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/client.html const ldap = require('ldapjs'); const…
user3828370
  • 35
  • 1
  • 6