Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@types/promised-ldap
Advanced tools
Readme
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 124 weekly downloads. As such, @types/promised-ldap popularity was classified as not popular.
We found that @types/promised-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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.