ldap-graphql
TypeScript icon, indicating that this package has built-in type declarations

0.11.6 • Public • Published

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:

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

Readme

Keywords

Package Sidebar

Install

npm i ldap-graphql

Weekly Downloads

33

Version

0.11.6

License

MIT

Unpacked Size

205 kB

Total Files

68

Last publish

Collaborators

  • saostad