
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@types/promised-ldap
Advanced tools
TypeScript definitions for promised-ldap
npm install --save @types/promised-ldap
This package contains type definitions for promised-ldap (https://github.com/stewartml/promised-ldap).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promised-ldap.
import { EventEmitter } from "events";
import * as ldap from "ldapjs";
declare class Client extends EventEmitter {
constructor({ url }: { url: string });
search(
base: string,
options: ldap.SearchOptions,
controls?: ldap.Control | ldap.Control[],
): Promise<{
entries: any[];
references: any[];
}>;
authenticate(base: string, dn: string, password: string): Promise<any>;
authenticateUser(
base: string,
dn: string,
password: string,
): Promise<{ name: string; email: string; groups: string[] } | null>;
bind(
dn: string,
password: string,
controls?: ldap.Control | ldap.Control[],
): Promise<any>;
add(
name: string,
entry: object,
controls?: ldap.Control | ldap.Control[],
): Promise<any>;
compare(
name: string,
attr: string,
value: string,
controls?: ldap.Control | ldap.Control[],
): Promise<boolean>;
del(name: string, controls?: ldap.Control | ldap.Control[]): Promise<any>;
exop(
name: string,
value: string,
controls?: ldap.Control | ldap.Control[],
): Promise<any>;
modify(
name: string,
change: ldap.Change | ldap.Change[],
controls?: ldap.Control | ldap.Control[],
): Promise<any>;
modifyDN(
name: string,
newName: string,
controls?: ldap.Control | ldap.Control[],
): Promise<any>;
_search(
base: string,
options: ldap.SearchOptions,
controls?: ldap.Control | ldap.Control[],
_bypass?: boolean,
): Promise<EventEmitter>;
_search(
base: string,
options: ldap.SearchOptions,
_bypass: boolean,
): Promise<EventEmitter>;
starttls(
options: object,
controls: ldap.Control | ldap.Control[],
_bypass?: boolean,
): Promise<any>;
unbind(): Promise<void>;
destroy(err?: any): void;
}
declare namespace Client {
type SearchOptions = ldap.SearchOptions;
}
export = Client;
These definitions were written by Alan Plum.
FAQs
TypeScript definitions for promised-ldap
The npm package @types/promised-ldap receives a total of 174 weekly downloads. As such, @types/promised-ldap popularity was classified as not popular.
We found that @types/promised-ldap 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.