npm.io
1.0.15 • Published 3 years agoCLI

mountebank-ldap

Licence
MIT
Version
1.0.15
Deps
2
Size
26 kB
Vulns
0
Weekly
0

LDAP protocol for Mountebank

Installation

Install Mountebank.

Install npm package.

Usage

Create protocols.json file and imposters.json file (examples in repo).

Then run Mountebank with these files:

mb --configfile imposters.json --protofile protocols.json

Then you can run a search query (ldapsearch is part of OpenLDAP which is available in many Linux repos and via Homebrew):

ldapsearch -H ldap://localhost:3898 -x -b o=iapdir "objectclass=*"

How it works

Sequence diagram showing data flow between client, custom protocol, and Mountebank.