import type { LdapConfig } from "../config/types.js";
|
/** Escape value for use inside LDAP filter (RFC4515 subset). */
|
export declare function escapeLdapFilterValue(value: string): string;
|
export type LdapVerifyResult = {
|
ok: true;
|
} | {
|
ok: false;
|
reason: "invalid_credentials" | "user_not_found" | "connection_error";
|
};
|
/**
|
* Verify username/password against AD/LDAP:
|
* service bind → search user DN → bind as user with password.
|
*/
|
export declare function verifyCredentials(username: string, password: string, cfg: LdapConfig): Promise<LdapVerifyResult>;
|