Skip to content

Allow injection of ldapjs client and export help function #43

@simonecorsi

Description

@simonecorsi

Hey 👋

It would be nice to export useful functions like verifyUserExists and also allow injecting our own ldapjs client while defaulting to the current behavior of instantiating its own with bind.

Use cases:

  • Allow usage of this package in env where no admin user is needed to list, eg local development LDAP server;
  • Mocking the client in tests.

Is this something you may want to add here, I'll see if I can make an MR, if not I'll just fork it :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions