ldapAuthenticationHandler.d.ts 717 B

123456789101112131415161718
  1. import { IAuthenticationHandler } from "./index.js";
  2. export interface LdapAuthenticationConfiguration {
  3. ldapUrl: string;
  4. bindDnField: string;
  5. bindBase: string;
  6. usernameField?: string | null;
  7. ldapFilter?: string | null;
  8. totpField?: string | null;
  9. }
  10. export declare class LdapAuthenticationHandler implements IAuthenticationHandler {
  11. private configuration;
  12. constructor(configuration: LdapAuthenticationConfiguration);
  13. private fieldToString;
  14. private tryBind;
  15. tryLogin(username: string, password: string, totp?: string): Promise<boolean | null>;
  16. needTotp(username: string, password: string): Promise<boolean | null>;
  17. }
  18. //# sourceMappingURL=ldapAuthenticationHandler.d.ts.map