@kronos-integration/service-ldap
Version:
72 lines (43 loc) • 2.84 kB
Markdown
[](https://spdx.org/licenses/0BSD.html)
[](https://github.com/Kronos-Integration/service-ldap/issues)
[](https://actions-badge.atrox.dev/Kronos-Integration/service-ldap/goto)
[](https://github.com/prettier/prettier)
[](http://commitizen.github.io/cz-cli/)
[](https://snyk.io/test/github/Kronos-Integration/service-ldap)
[](https://coveralls.io/github/Kronos-Integration/service-ldap)
# @kronos-integration/service-ldap
ldap
# usage
# API
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
### Table of Contents
* [ServiceLDAP](#serviceldap)
* [search](#search)
* [Parameters](#parameters)
* [authenticate](#authenticate)
* [Parameters](#parameters-1)
* [name](#name)
## ServiceLDAP
**Extends Service**
LDAP
### search
Execute a query.
#### Parameters
* `request` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>** result
### authenticate
Authorize with username and password.
#### Parameters
* `props` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
* `props.username` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
* `props.password` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>>** entitlements
### name
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 'ldap'
# install
With [npm](http://npmjs.org) do:
```shell
npm install @kronos-integration/service-ldap
```
# license
BSD-2-Clause