ldapAuthenticationHandler.d.ts 677 B

1234567891011121314151617
  1. import { IAuthenticationHandler } from "./index.js";
  2. export interface LdapAuthenticationConfiguration {
  3. ldapUrl: string;
  4. bindDnField: string;
  5. bindBase: 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 fieldToString;
  13. private tryBind;
  14. tryLogin(username: string, password: string, totp?: string): Promise<boolean | null>;
  15. needTotp(username: string, password: string): Promise<boolean | null>;
  16. }
  17. //# sourceMappingURL=ldapAuthenticationHandler.d.ts.map