iya-sts
    Preparing search index...
    candidateOf: (
        record: any,
        usersKey: any,
        required: any,
    ) =>
        | { code: any; ok: boolean; reason: any }
        | {
            attributes: {};
            dn: string;
            dnKey: string;
            mailAliases: string[];
            names: string[];
            ok: boolean;
        } = candidateOf

    Type Declaration

      • (
            record: any,
            usersKey: any,
            required: any,
        ):
            | { code: any; ok: boolean; reason: any }
            | {
                attributes: {};
                dn: string;
                dnKey: string;
                mailAliases: string[];
                names: string[];
                ok: boolean;
            }
      • Checks one parsed LDIF record and turns it into a candidate, or says why not. A HOT PATH (once a record), so no Entering/Leaving pair.

        Parameters

        • record: any

          ldif_stream's record

        • usersKey: any

          the realm's ou=users DN, normalised

        • required: any

          the attributes the realm's attribute policy requires, lower-cased, where it is enforced (#396); empty where it is not

        Returns
            | { code: any; ok: boolean; reason: any }
            | {
                attributes: {};
                dn: string;
                dnKey: string;
                mailAliases: string[];
                names: string[];
                ok: boolean;
            }

        { ok: true, dn, dnKey, names, attributes } or { ok: false, code, reason }