ldap-simple-tool
v1.0.4
Published
## What is it
Downloads
2
Readme
ldap-simple-tool
What is it
This is a simple ldap tool inspired by https://github.com/shanghai-edu/ldap-test-tool.
How to use it
cli usage
Installation
If you have node installed, simple execute
npm i -g ldap-simple-tool
oryarn global add ldap-simple-tool
or downloadldap-simple-tool
.If you do not have node, download the latest binary according to your OS platform in release page.
Download the template config file via https://raw.githubusercontent.com/liudonghua123/ldap-simple-tool/master/cfg.conf.example, modify according to your actual environment. Place it in the cwd, the location of the script or the homedir, the priority of config location is cwd > script > homedir.
Run
ldap-simple-tool
in a terminal.
lib usage
npm i ldap-simple-tool
oryarn add ldap-simple-tool
import and use it
const { check, auth, search, filter } = require('ldap-simple-tool'); // ... let authenticated = await check({ addr, bindDn, bindPass, tls, startTLS }); let authResults = await auth({ addr, baseDn, bindDn, bindPass, authFilter, tls, startTLS }, [ _, usernameOrFilePath, userPasswordOptional, ]); let searchResults = await search({ addr, baseDn, bindDn, bindPass, authFilter, tls, startTLS }, [ _, usernameOrFilePath, ]); let filterResults = await filter({ addr, baseDn, bindDn, bindPass, authFilter, tls, startTLS }, [_, expression]);
Todos
- [ ] add travis ci support.
- [ ] shrink the binary size.
- [ ] add more useful features.
Snapshots
LICENSE
MIT License
Copyright (c) 2020 liudonghua