【文件属性】:
文件名称:simple-ldap-search:从LDAP获取数据。 没有什么花哨
文件大小:99KB
文件格式:ZIP
更新时间:2021-05-03 05:27:00
ldap ldapjs ldap-search JavaScript
简单的LDAP搜索
搜索LDAP。 没有什么花哨。
客户端上的薄薄的,有承诺的包装器。
安装
$ npm install --save simple-ldap-search
用法
import SimpleLDAP from 'simple-ldap-search' ;
const config = {
url : 'ldap://0.0.0.0:1389' ,
base : 'dc=users,dc=localhost' ,
dn : 'cn=root' ,
password : 'secret' ,
} ;
// create a new client
const ldap = new SimpleLDAP ( config ) ;
// setup a filter and attributes for your LDAP query
const filter =
【文件预览】:
simple-ldap-search-master
----.travis.yml(317B)
----index.js(3KB)
----package.json(988B)
----.eslintrc.json(341B)
----test()
--------fixtures()
----LICENSE(1KB)
----package-lock.json(334KB)
----index.test.js(5KB)
----.npmignore(84B)
----.gitignore(89B)
----lib()
--------arrayIncludesFunction.test.js(1016B)
--------addListenerIfNotAdded.test.js(846B)
--------arrayIncludesFunction.js(364B)
--------cleanEntry.test.js(1KB)
--------addListenerIfNotAdded.js(720B)
--------cleanEntry.js(795B)
----README.md(1KB)
----.editorconfig(166B)
----.prettierrc.json(72B)