ldapAuthenticationHandler.d.ts 649 B

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