Installation
npm install --save @types/ldapjs-client
Summary
This package contains type definitions for ldapjs-client (https://github.com/zont/ldapjs-client#readme).
Details
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);
add(dn: string, entry: object): Promise<any>;
bind(dn: string, password: string): Promise<any>;
del(dn: string): Promise<any>;
destroy(): Promise<void>;
modify(dn: string, change: LdapClient.Change): Promise<any>;
modifyDN(dn: string, newName: string): Promise<any>;
search(base: string, options: LdapClient.SearchOptions): Promise<unknown[]>;
unbind(): Promise<any>;
}
export = LdapClient;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: none
Credits
These definitions were written by Valerio Coltrè.