
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
@wildboar/ldap
Advanced tools
ASN.1 data structures based on the ASN.1 definitions in IETF RFC 4511, which defines the Lightweight Directory Access Protocol (LDAP).
See the documentation that applies to this library and others to learn how to use this module.
Includes functions for implementing the LDAP syntaxes defined in IETF RFC 4517, functions for evaluating LDAP filters, and functions for converting LDAP data structures to strings for transfer over the wire.
import { BERElement } from "@wildboar/asn1";
import { _decode_LDAPMessage } from "@wildboar/ldap";
// Handle a request received over TCP.
const el = new BERElement();
el.fromBytes(requestBytes); // Throws if a full LDAPMessage is not received yet.
// The above returns the number of bytes read.
const request = _decode_LDAPMessage(el);
if (request.protocolOp === "bindRequest") {
const bindRequest = request.protocolOp.bindRequest;
const namestr = Buffer.from(bindRequest.name).toString("utf8");
console.log(`Binding as ${namestr}`);
}
These libraries were generated entirely or in part by the ASN.1 Compilation Service offered by Wildboar Software. The ASN.1 compiler itself is closed-source and proprietary, but some of the libraries produced with it are released publicly under the MIT license.
If you would like to see additional ASN.1 libraries in TypeScript or other programming languages, or if you have any other questions, please contact us at contact@wildboarsoftware.com.
As of June 12th, 2025, this module is only compiled to ESM. CommonJS will no longer be supported.
FAQs
Lightweight Directory Access Protocol PDUs in TypeScript
We found that @wildboar/ldap demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.