Installation
npm install --save @types/ldap-authentication
Summary
This package contains type definitions for ldap-authentication (https://github.com/shaozi/ldap-authentication#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ldap-authentication.
index.d.ts
import { ClientOptions } from "ldapjs";
export interface AuthenticationOptions {
ldapOpts: ClientOptions;
userDn?: string;
adminDn?: string;
adminPassword?: string;
userSearchBase?: string;
usernameAttribute?: string;
username?: string;
verifyUserExists?: boolean;
starttls?: boolean;
groupsSearchBase?: string;
groupClass?: string;
groupMemberAttribute?: string;
groupMemberUserAttribute?: string;
userPassword?: string;
}
export function authenticate(options: AuthenticationOptions): Promise<any>;
export class LdapAuthenticationError extends Error {
constructor(message: any);
name: string;
}
export as namespace LdapAuthentication;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: @types/ldapjs
Credits
These definitions were written by Simone Corsi.