ldap-graphql

Graphql binding for LDAP server

Goal

Battery included, Schema-aware binding between LDAP and Graphql

How to use it

import { initial } from "ldap-graphql";
const connectionInfo = {
baseDN: "DC=DOMAIN,DC=COM",
user: "",
pass: "",
ldapServerUrl: "",
};

initial({ connectionInfo }).then(({ url }) => {
console.log(`Server started on ${url}`);
});

Documentation

Schema API Docs

Module Code Docs

TODO:

  • extend pre-defined schema and resolvers via custom code
  • ability to re-generate schema and update pre-defined schemas
  • option to change default schema generated output directory
  • option to run server on different port
  • general graphql queries
    • userGetAll
    • userUpdate
    • getByDn(dn: String!) // can fetch any entry
    • adEntryCountryUpdate(input: AdEntryCountryUpdateInput!): GeneralEntry
      • update 3 fields(c, co, countryCode) at same time
    • entryUpdate
    • entryDelete
    • entryAdd
    • getOUs(baseDn: String)
    • getDirectChildren(dn: String!) // one level search

Generated using TypeDoc