Socket
Socket
Sign inDemoInstall

simple-ldap-client

Package Overview
Dependencies
33
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    simple-ldap-client

simple wrapper library for common operations in ldapjs


Version published
Weekly downloads
59
increased by195%
Maintainers
1
Install size
5.67 MB
Created
Weekly downloads
 

Readme

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

Last updated on 15 Dec 2020

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