iya-sts
    Preparing search index...
    classify: (
        db: any,
        realmId: any,
        usersKey: any,
        fresh: any,
        inserted: any,
    ) => Promise<{ mailed: Set<any>; present: Set<any>; taken: Set<any> }> = classify

    Type Declaration

      • (
            db: any,
            realmId: any,
            usersKey: any,
            fresh: any,
            inserted: any,
        ): Promise<{ mailed: Set<any>; present: Set<any>; taken: Set<any> }>
      • Which of a batch's candidates are present (their DN is there) and which propose a name another entry holds, asked in three statements.

        Parameters

        • db: any

          a client inside the batch's transaction

        • realmId: any

          the realm

        • usersKey: any

          its ou=users, normalised

        • fresh: any

          the candidates, each with c.dnKey, c.names and digests

        • inserted: any

          true under the lock, after the insert: the DN needs no asking

        Returns Promise<{ mailed: Set<any>; present: Set<any>; taken: Set<any> }>

        a promise of { present, taken, mailed }, each a set of indexes. mailed is an email-shaped pseudonym held as somebody else's mail.