Socket
Socket
Sign inDemoInstall

simple-ldap-client

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-ldap-client

simple wrapper library for common operations in ldapjs


Version published
Maintainers
1
Created
Source

ldap-client

This is a simple wrapper library to make it easier to do basic LDAP operations like changing a password, resetting a password, and authenticating.

Usage

const ldapClient = require('ldap-client')
const url = 'ldaps://ad1.dcloud.cisco.com:636/'
const baseDn = 'DC=dcloud,DC=cisco,DC=com'
const upn = 'sjeffers@dcloud.cisco.com'
const password = 'C1sco12345'

// init client
let ldap = new ldapClient(url, baseDn)

// attempt authentication
ldap.authenticate({ upn, password })
.then(() => {
  console.log('authentication successful')
})
.catch(error => {
  console.log(error)
})

Keywords

FAQs

Package last updated on 15 Dec 2020

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