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
25
votes
4 answers

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 latest working version which is 1.0.2. As I commited…
6
votes
0 answers

nodejs ldap authentication failure

I am using the activedirectory npm package for authenticating to the activedirectory in the enterprise. Finding trouble authenticating, whereas I have done this multiple times before in other softwares. var ActiveDirectory =…
user2405589
  • 881
  • 2
  • 14
  • 32
5
votes
1 answer

Use ldapjs with bluebird promise

I posted something similar here: Use ldapjs with promise. Unfortunately, it is still unsolved. This time I tried bluebird and hopefully I can get some luck. // https://www.npmjs.com/package/ldapjs var Promise = require('bluebird'); var ldap =…
kenpeter
  • 7,404
  • 14
  • 64
  • 95
3
votes
1 answer

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 user_abc@abc.pk ******** 2- …
3
votes
1 answer

NodeJS + ldapsj-client: problem saving thumbnailPhoto

Using the ldapsj-client module, I'm trying to save the thumbnailPhoto into a file const auth = async () => { const client = new LdapClient({ url: 'myaddomain' }) await client.bind('someemail@domain.com.br', 'passwaord') const opts = { …
Christian Benseler
  • 7,907
  • 8
  • 40
  • 71
3
votes
1 answer

Authentication on LDAP Server using React Native and Firebase custom tokens

I'm trying to authenticate my users (from my RN application) through the LDAP server (I've already found one to try authentication here, and it works!). I can create a custom token using Firebase every time I receive the credentials of the users…
3
votes
0 answers

Node.js authentication mechanism with LDAP

I wish to implement a login mechanism to my App, as the users are sitting in LDAP server, and not in local DB. Iv'e been thinking about implementing it passport.js, but i'm trying to figure out the other part of the solution- I can choose…
Chen
  • 2,958
  • 5
  • 26
  • 45
3
votes
1 answer

ldapjs - write after end error

I have created an authentication service using the following code in Node.js and ldapjs. var when = require ('when'); var AuthenticationError = require('../errors/AuthenticationError'); var SessionManagerService =…
2
votes
1 answer

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 javascript works rather than library as its…
Jakub Koudela
  • 160
  • 1
  • 18
2
votes
1 answer

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 = require('ldapjs'); const ldapClient =…
vodolaz095
  • 6,680
  • 4
  • 27
  • 42
2
votes
0 answers

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 works well. I get my user like so: const…
rcpilotp51
  • 524
  • 1
  • 3
  • 22
2
votes
2 answers

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 url: TypeError: ldap://192.168.200.35:389 is an…
dewey
  • 809
  • 2
  • 16
  • 47
2
votes
0 answers

Controlled and paged ldap_search in LDAP using ldapjs node library

We are looking for ldap_search parameter to fetch the results from particular page directly instead loading pages sequentially one after other. For example loading LDAP entries from 10th page directly by skipping 1st to 9th pages. We have…
2
votes
1 answer

NodeJS error message - UNABLE_TO_GET_ISSUER_CERT_LOCALLY - attempting LDAPS connection

I have LDAP connections working properly with node-ldapjs. I am trying to implement LDAPS connections with node-ldapjs. The setup/configuration I am using is equivalent to the solution which was described as being successful by another individual…
TinMan
  • 105
  • 2
  • 8
2
votes
2 answers

ldapjs, how to delete attribute

I want to use Node.js ldapjs client api #modify to delete an attribute of an LDAP entry. Via shell and ldapmodify ... -f removeAttribute.ldif it works, using the following ldif file: dn: uid=user,dc=test changetype: modify delete:…
Manfred Steiner
  • 1,215
  • 2
  • 13
  • 27
1
2 3 4 5 6 7 8