Wondering what’s next for npm?Check out our public roadmap! »

    simple-ldap-client

    2020.12.15 • Public • Published

    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

    Install

    npm i simple-ldap-client

    DownloadsWeekly Downloads

    6

    Version

    2020.12.15

    License

    ISC

    Unpacked Size

    45.1 kB

    Total Files

    27

    Last publish

    Collaborators

    • avatar