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

angular2 ldap authentication

Is there anyway to implement ldap authentication in angular2? I am trying to migrate my web application to Angular2 and I am done with most of the UI part now I left with Authentication. I have used springboot ldap authentication in the past app…
user1653027
  • 789
  • 1
  • 16
  • 38
1
vote
1 answer

Ldapjs wait until search is completed

I have the Problem that the return is made before methodStatus is set to true (so the return is always false even when I can see 'success' in the console log) function anmelden(username, userPassword){ var methodStatus = false; var opts = { …
1
vote
0 answers

ldapjs with ldaps - Do I need to configure additional params?

I've used a nodejs module called bluepages that internally uses ldapjs for LDAP based authentication. I checked the code and found that it was connecting on ldap://ldap-domain.com from which I figured it was insecure. I modified it to the following…
user6897470
1
vote
1 answer

What do I need to connect to an LDAP, and bind to a more "general" DN to search for users?

I have a problem about something I've never really encountered before, that is connecting to an LDAP from a NodeJS application. Until now, I didn't even know there was such a thing as an LDAP, so I've been learning on the go. That's why this may be…
Heathcliff
  • 3,048
  • 4
  • 25
  • 44
1
vote
0 answers

How to change a SAMBA user password from Node JS?

I'm trying to change a LDAP password from Node JS using LDAPJS. The LDAP server is embedded in our SAMBA server. client.bind("CN=", "", function(err) { if(err) { return…
Pierre Le Roux
  • 484
  • 5
  • 15
1
vote
0 answers

Gitlab CE : LDAP Authentification with ldapjs

I am building an LDAP adapter on my company's SSO so people can log-in to gitlab through it. My LDAP adapther is build with ldapjs and returns the following object : { dn: 'cn=test, o=sso', attributes: { cn: 'test', uid: 'test', …
IggY
  • 3,005
  • 4
  • 29
  • 54
1
vote
1 answer

How to add user to an LDAP group with LDAP.js

I'm using LDAPjs inside a Node.js application. My app is creating a new user as intended, but I've not been able to find an example of how to go about adding that new user to an existing group. Given a client object that was created with…
Michael Oryl
  • 20,856
  • 14
  • 77
  • 117
1
vote
4 answers

Use ldapjs with promise

I want to convert the following code to use promise. It is working and output a user's attributes within the active directory. var client = ldap.createClient({ url: ldap_url }); client.bind(ldap_username, ldap_password, function (err) { …
kenpeter
  • 7,404
  • 14
  • 64
  • 95
1
vote
1 answer

Active directory proxy in node.js

I'm trying to write an activty directory proxy, that will receive search requests, run some code, and then recreate the request with the real server. I'm not able to get it to work, here's the code so far: var ldap = require('ldapjs'); var…
Shaul
  • 211
  • 1
  • 4
  • 18
1
vote
1 answer

How to connect LDAP using ldapjs in NodeJS

Been playing around with NodeJS in the past few days and run stuck with LDAP connection using ldapjs module. Background story, the Active-Directory server, that I am trying to connect to, supports LDAPv3. Below is the code I used to connect to the…
Chris Wijaya
  • 1,276
  • 3
  • 16
  • 34
1
vote
1 answer

How Do I Assign LDAP Password Via LDAPjs?

I'm using ldapjs. I got this code from some sites: var newUser = { cn: 'new guy', sn: 'guy', uid: 'nguy', mail: 'nguy@example.org', objectClass: 'inetOrgPerson', userPassword: ssha.create('s00prs3cr3+') } The thing is, the…
bentinata
  • 324
  • 1
  • 4
  • 13
0
votes
1 answer

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(function (resolve, reject) { const…
afontalv
  • 313
  • 1
  • 4
  • 12
0
votes
0 answers

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(userDN); console.log(groupDN); const change =…
0
votes
0 answers

my openldap docker can only be accessed with phpldapmyadmin docker

I have successfully run openldap and phpldapadmin container and able to use it with this command docker run -p 389:389 -p 636:636 --name ldap-service --hostname ldap-service --env LDAP_DOMAIN=mydomain --env LDAP_CONFIG_PASSWORD=admin --detach…
0
votes
1 answer

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 ceration of the user are the : userAccountControl. But…