Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

4q-node-ldap

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

4q-node-ldap

LDAP functions

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Async/Await ldap wrapper

Goal

Expose our most used ldap functions as async/await for use across projects.

Features

  • Authentication
  • Get user groups
  • Expose raw ldap client

Usage

Installation

npm install 4q-node-ldap --save
const ldap = require('4q-node-ldap');

const ldapConn = await ldap.Connect(
    'ldaps://ldaps.example.com',
    'DC=example,DC=com',
    'service-user@example.com',
    'password',
    { /* tls options */ },
    { /* ldap options */ }
);

await ldapConn.authenticate('other-user@example.com', 'password');
await ldapConn.groups('other-user@example.com');

build

npm run build

Whenever this package is updated locally the changes will be available in the projects that are linked

  • Run the following command at the root of this package npm link

  • In the project where you want to use this package link the npm package locally with npm link 4q-node-ldap

publish

Any changes made must first be built and then version increased before publishing

  1. npm version major|minor|patch

  2. npm login

  3. npm publish

Keywords

FAQs

Package last updated on 01 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc