1.0.1 • Published 5 years ago

multi-ldap v1.0.1

Weekly downloads
8
License
BSD-2-Clause
Repository
github
Last release
5 years ago

multi-ldap

npm.io npm.io npm.io

ldapjs client wrapper with support for multiple servers

Provides the same API as ldapjs, except for the createClient method which takes opts, callback arguments. The callback then returns err, client. Servers will be queried in parallel, with the fastest responding server being chosen.

Refer to the ldapjs client API for all supported options.

Installation

$ npm i --save multi-ldap

Usage

const ldap = require('multi-ldap');
ldap.createClient({
  url: [
    'ldaps://1.2.3.4',
    'ldaps://5.6.7.8',
    'ldaps://9.10.11.12',
    'ldaps://13.14.15.16',
  ]
}, function(err, client) {
  // do something with the connected client
});

© silverwind, distributed under BSD licence

1.0.1

5 years ago

1.0.0

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago