Socket
Socket
Sign inDemoInstall

4q-node-ldap

Package Overview
Dependencies
45
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    4q-node-ldap

LDAP functions


Version published
Weekly downloads
12
decreased by-14.29%
Maintainers
1
Created
Weekly downloads
 

Readme

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

Last updated on 01 Nov 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc