A LDAP tool for windows.
To view documentation or get support, visit docs.
w-ldap
is basing on theMicrosoft .Net Framework
.
Note:
w-ldap
is mainly dependent onlodash-es
andwsemi
, and should run inWindows
.
npm i w-ldap
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