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
1
vote
0 answers

Ldap socket option - ldapjs

I am trying to connect to an LDAP server from my node.js application using ldapjs module. I'm following the documentation. I would like to know more about the socketPath option and when it has to be used. I would also like to know how to add the…
Praveen Kumar
  • 977
  • 3
  • 12
  • 26
1
vote
1 answer

How to get a successful bind with company LDAP server

I am setting up LDAP authentication for a website that my team created with MEAN stack (MongoDB, Express, Angular, and Node). However, my bind is unsuccessful. This work has been done on Windows 10. I am having trouble following the ldap.js…
1
vote
1 answer

Convert objectGuid to UUID string using Javascript

I have been looking for a way to convert the ObjectGuid out of Active Directory is a special type that gets converted to a string, which is odd looking, using libraries such as ldapjs and or adding it as a claim using ping federate. An example of…
thxmike
  • 614
  • 1
  • 7
  • 25
1
vote
0 answers

PassportJS Error: No other operations may be performed on the connection while a bind is outstanding intermittently

TLDR: Is there a race condition issue with passportjs or passport-ldapauth? I am using the koa-passport library with the passport-ldapauth strategy in a nodejs application intended to authenticate a user against AD (Active Directory). Wow, that…
1
vote
1 answer

Issue with ldapjs and string base64 format

I have a LDAP server and the users have a property which is a jpeg photo in base64 format. When I search for the user, this specific attribute comes with a weird string format: ,��1�3�>��F��ԯ�]KW�t�.
Juan Rivillas
  • 897
  • 2
  • 9
  • 23
1
vote
1 answer

is it possible to add pagination in ldap get all members query?

I am getting all memebers from AD group with the query (&(objectClass=user) (memberof:1.2.840.113556.1.4.1941:=CN=GroupOne,OU=Security Groups,OU=Groups,DC=YOURDOMAIN,DC=NET) But it is just giving first 1000 users in that group because of…
Test Mail
  • 169
  • 3
  • 15
1
vote
1 answer

Get specific object attribute from ldapjs search

I'm binding and authentication a user to ldap as it is shown in the code below. Now i'm getting all the attributes of the object, what i want is to get just the 'distingushedName' for example. Is there a method in ldapjs for that? Is it a filter…
1
vote
1 answer

LDAP authentication using nodejs

For my angularJs app, i want to create an authentication by connecting to my company's LDAP using nodeJs to manage users authorization. This is my current code, i'm getting this error: binding failed status: 0 result:…
Sarah ßezi
  • 99
  • 1
  • 2
  • 6
1
vote
0 answers

how to access AWS Microsoft AD using npm packages like activedirectory, ldapjs or ldap-client

I have an AWS Directory Service for Microsoft AD and and EC2 Windows Server 2016 joined to the AD and put users into the AD, my question is how will i access the AD using npm packages like activedirectory, ldapjs or ldap-client AWS Microsoft for…
1
vote
1 answer

Data from LDAP query in variable LdapJS

I'm trying to get the data from LDAP and I'm getting it successfully but it's not written into variable so then after the code is executed I can make some checks on the data. var server = LdapJS.createClient({ url: LdapConf.server.url, …
hplodur
  • 111
  • 3
  • 16
1
vote
1 answer

ThumbnailPhoto from ActiveDirectory returned wrong

I first want to mention that I'm not an expert with LDAP. What I need is to get from my company's ldap some information including the user photo. My problem is that after I get all the information I need, the thumbnailPhoto appears to be somehow…
Cypher
  • 65
  • 11
1
vote
2 answers

ldapjs client.search results to be accessed outside of the function

I am using ldapjs library in nodejs. I want to access the results of client.search outside of the function. Here is my code items = []; client.search('cn=users,dc=test,dc=com', opts, function (err, res) { if (err) console.log(err); …
user2406718
  • 263
  • 4
  • 15
1
vote
0 answers

ldapjs Uncaught TypeError: net.connect is not a function in client.js

I use npm install ldapjs to use this library. And simple bind code: var ldap = require('ldapjs'); var client = ldap.createClient({ url: 'ldap://192.168.1.90:389' }) const baseDN = 'dc=mnw-inc,dc=com' export function login(username, password) { …
鸡肉味嘎嘣脆
  • 233
  • 1
  • 3
  • 15
1
vote
1 answer

Searching Operational Attributes using ldapjs

Question: How do I search for operational attributes associated with users using ldapjs? I know that when using ldapsearch I can get the operational attributes with the '+' argument. I am familiar with ldapjs's client search function, but I do not…
hededo
  • 371
  • 2
  • 16
1
vote
1 answer

LDAPJS authentication and search

ldapsearch -h myserver.123.com -b 'dc=123,dc=com' -x uid=myid This command works for me. Gets what I want. But I try hard to implement this functionality to node.js I try this example: I think that myserver.123.com doesn't need authentication. I…
Simon Teros
  • 11
  • 1
  • 5