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

Subpackage is not included in my npm module

I have an npm module called 'ldap-pool'. This package depends on 'ldapjs' and also '@types/ldapjs', but for some reason when I install 'ldap-pool' into another project, the '@types/ldapjs' package is not being installed. The above is the…
user5047085
0
votes
1 answer

How to Run the Function with Express POST based the response from the Previous Middleware

I am very new to MEAN.io Below Function(authDN) written & which is working fine on running alone like below. when I run the function directly I am getting proper response in the console authDN('myuserName', 'myPassword', output); But I wanted to run…
Mahesh G
  • 1,226
  • 4
  • 30
  • 57
0
votes
1 answer

Query results are not sorted using ldap.js framework in node.js server

I tried to query 'LDAP server users' with my node.js server. here is my codes what i tried with 'Ldapjs framework' function ldapQuery_Users(){ var opts = { filter: '(uid=*)', scope: 'sub' // attributes: ['dn', 'sn', 'cn', 'phone', 'fax',…
jaeseung you
  • 33
  • 1
  • 8
0
votes
1 answer

LDAPjs find entry knowing cn

I have a remote LDAP server with entries like this: CN=Fred Foobar, OU=Dept1, O=FooBar Using LDAPjs as a client, how do I find this entry when only the CN is known at runtime? I have tried each of the following, with no…
user1207177
  • 577
  • 3
  • 16
0
votes
2 answers

Ldapjs search is not working

I'm trying to search in ldapjs using method 'search', but it is not working for me. Here is response from terminal : > Result is: SearchResponse { messageID: 2, protocolOp: 101, controls: [], log: Logger { domain: null, …
0
votes
1 answer

Exception handling in NodeJs

I have below code to do LDAP authentication using ldapjs. When the password is wrong, I'll get the error. I want to handle different error returned in the response. var client = ldap.createClient({ url:…
Santosh Hegde
  • 3,420
  • 10
  • 35
  • 51
0
votes
2 answers

how to make a request to Ldap with client-side Javascript?

I should make a request to LDAP client side possibly with Javascript. I searched in the web finding ldapjs that does what I want, but server side. This: var ldap = require('ldapjs'); var server = ldap.createServer(); server.search('o=example',…
0
votes
1 answer

ldapjs paging with ajax client

Although paging is covered in the ldapjs documentation, I'm unclear on how to implement paging in my application using an ajax client. Let's say I make a simple call to the server to search the LDAP for all people in the organization, initially for…
Andrew
  • 2,368
  • 1
  • 23
  • 30
0
votes
1 answer

ldap_add: Constraint violation (19) - additional info: cn required

I am trying to add a new user in LDAP by using the below command: ldapadd -H ldap://localhost:1389 -x -D cn=root -w secret -f ./user.ldif user.ldif file contains the data as dn: cn=ldapjs, ou=users, o=myhost objectClass: unixUser cn: ldapjs shell:…
Sankar
  • 1
  • 1
0
votes
2 answers

Ldap.js : nested search

I'm trying to perform, with ldapjs, a search for which the filter depends on the result of a first search ldapClient.search(base1, opts1, (err1, res1) => { res1.on("searchEntry", entry => { const myObj = { attr1: entry.object.attr1 } …
0
votes
1 answer

node.js synchronous function call for authentication

i am completely newbie in node.js, and trying learn how it actually works. I know that by default all node.js function calls are asynchronous. Now i need LDAP authentication in my application where i need wait for the server response to check…
Shibankar
  • 806
  • 3
  • 16
  • 40
0
votes
0 answers

LDAP Integration Node.JS

I'm developing a simple node app using ldapjs. Unfortunately, I'm not sure how to make the connection with ldap. Our IT department gave me the below credentials (some redacted for security). My app.js file looks like the following. I just need to…
Viper
  • 1,327
  • 2
  • 12
  • 33
-1
votes
1 answer

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.
-1
votes
2 answers

How to translate Powershell -> JavaScript for LDAP (dn -> canonicalName) conversion function

I found a great function that takes a valid Active Directory LDAP distinguishedName (DN) string and converts it to properly formatted canonicalName (not CN) string written in PowerShell. Because I am using ldapjs in Node.js and need to retrieve an…
-3
votes
1 answer

I need information about connecting to a windows server DC with ldapjs and changing user password

is their any documentation for connecting to a windows AD with ldapjs? I'm trying to change to password with this code and i can't figure out what the issue is. the bind worked but now I'm getting an npm ERR! code ELIFECYCLE... `var change = new…
1 2 3 4 5 6 7
8