Browse project docs

ldapjs-community Examples

Complete ldapjs-community examples for bind, search, Active Directory, TLS, and an in-memory LDAP server.

On this page

These examples favor complete control flow over long explanations. They assume the package is installed through the alias documented in Installation, so source code continues to load ldapjs.

Link to Choose an exampleChoose an example

Link to Before running codeBefore running code

Use a test directory and least-privilege accounts. Never commit bind passwords or private CA material. Confirm base DNs, attributes, server certificates, and directory limits with the operator of the target directory.

For the method-level API, use the Client API.