w-ldap
v1.0.12
Published
A LDAP tool for windows.
Downloads
6
Maintainers
Readme
w-ldap
A LDAP tool for windows.
Documentation
To view documentation or get support, visit docs.
Core
w-ldap
is basing on theMicrosoft .Net Framework
.
Installation
Using npm(ES6 module):
Note:
w-ldap
is mainly dependent onlodash-es
andwsemi
, and should run inWindows
.
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