w-ldap

1.0.12 • Public • Published

w-ldap

A LDAP tool for windows.

language npm version license gzip file size npm download npm download jsdelivr download

Documentation

To view documentation or get support, visit docs.

Core

w-ldap is basing on the Microsoft .Net Framework.

Installation

Using npm(ES6 module):

Note: w-ldap is mainly dependent on lodash-es and wsemi, and should run in Windows.

npm i w-ldap

Example:

Link: [dev source code]

import WLdap from 'w-ldap'

async function test() {
    let inp
    let r
    let account = '{account}'
    let password = '{password}'
    let ldappath = 'LDAP://{PATH}'

    inp = {
        mode: 'logIn',
        account,
        password,
        ldappath,
    }
    r = await WLdap(inp)
    console.log('logIn', r)
    w.fsWriteText('logIn.txt', w.o2j(r, true))

    inp = {
        mode: 'listUsers',
        account,
        password,
        ldappath,
    }
    r = await WLdap(inp)
    w.fsWriteText('listUsers.txt', w.o2j(r, true))

}
test()
    .catch((err) => {
        console.log('catch', err)
    })

// => logIn {
//     //LDAP user information
// }
// see logIn.txt and listUsers.txt for details

Package Sidebar

Install

npm i w-ldap

Weekly Downloads

1

Version

1.0.12

License

MIT

Unpacked Size

18.9 MB

Total Files

116

Last publish

Collaborators

  • semisphere