
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
@types/ldapjs-client
Advanced tools
TypeScript definitions for ldapjs-client
npm install --save @types/ldapjs-client
This package contains type definitions for ldapjs-client (https://github.com/zont/ldapjs-client#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ldapjs-client.
declare namespace LdapClient {
interface Change {
operation: "add" | "delete" | "replace";
modification: {
[key: string]: any;
};
}
interface SearchOptions {
scope?: string | undefined;
filter?: string | undefined;
attributes?: string[] | undefined;
sizeLimit?: number | undefined;
timeLimit?: number | undefined;
typesOnly?: boolean | undefined;
}
interface ClientOptions {
url: string;
tlsOptions?: object | undefined;
timeout?: number | undefined;
}
}
declare class LdapClient {
constructor(options: LdapClient.ClientOptions);
/**
* Adds an entry to the LDAP server.
*/
add(dn: string, entry: object): Promise<any>;
/**
* Performs a simple authentication against the server.
*/
bind(dn: string, password: string): Promise<any>;
/**
* Deletes an entry from the LDAP server.
*/
del(dn: string): Promise<any>;
/**
* Disconnect from the LDAP server and do not allow reconnection.
*
* If the client is instantiated with proper reconnection options, it's
* possible to initiate new requests after a call to unbind since the client
* will attempt to reconnect in order to fulfill the request.
*
* Calling destroy will prevent any further reconnection from occurring.
*/
destroy(): Promise<void>;
/**
* Performs an LDAP modify against the server.
*
* @param dn the DN of the entry to modify.
* @param change update to perform (can be [Change]).
*/
modify(dn: string, change: LdapClient.Change): Promise<any>;
/**
* Performs an LDAP modifyDN against the server.
*/
modifyDN(dn: string, newName: string): Promise<any>;
/**
* Performs an LDAP search against the server.
*
* Note that the defaults for options are a 'base' search.
*/
search(base: string, options: LdapClient.SearchOptions): Promise<unknown[]>;
/**
* Unbinds this client from the LDAP server.
*/
unbind(): Promise<any>;
}
export = LdapClient;
These definitions were written by Valerio Coltrè.
FAQs
TypeScript definitions for ldapjs-client
The npm package @types/ldapjs-client receives a total of 844 weekly downloads. As such, @types/ldapjs-client popularity was classified as not popular.
We found that @types/ldapjs-client demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.