# ldap-graphql

> Schema-aware binding between LDAP and Graphql

Latest version **0.11.6** (published 2022-08-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install ldap-graphql
pnpm add ldap-graphql
yarn add ldap-graphql
bun add ldap-graphql
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.11.6 |
| Published | 2022-08-17 |
| First published | 2020-04-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 200.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Saeid Ostad |
| Maintainers | saostad |
| Keywords | ldap, graphql, typescript |

## Links

- npm: https://www.npmjs.com/package/ldap-graphql
- Repository: https://github.com/saostad/ldap-graphql
- Homepage: https://github.com/saostad/ldap-graphql#readme
- Issues: https://github.com/saostad/ldap-graphql/issues
- npm.io page: https://npm.io/package/ldap-graphql

## Dependencies (7)

- [graphql](https://npm.io/package/graphql.md) ^16.6.0
- [change-case](https://npm.io/package/change-case.md) ^4.1.2
- [apollo-server](https://npm.io/package/apollo-server.md) ^3.10.1
- [fast-node-logger](https://npm.io/package/fast-node-logger.md) ^3.0.3
- [ldap-directory-manager](https://npm.io/package/ldap-directory-manager.md) ^0.16.8
- [ldap-schema-ts-generator](https://npm.io/package/ldap-schema-ts-generator.md) ^4.0.14
- [@graphql-tools/load-files](https://npm.io/package/@graphql-tools/load-files.md) ^6.6.1

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 0.11.6 (latest) — 2022-08-17
- 0.11.5 — 2022-08-16
- 0.11.4 — 2022-07-20
- 0.11.3 — 2022-07-19
- 0.11.2 — 2022-07-18
- 0.11.1 — 2022-07-18
- 0.11.0 — 2022-07-14
- 0.10.1 — 2022-07-11
- 0.10.0 — 2020-08-18
- 0.9.0 — 2020-06-24
- 0.8.0 — 2020-06-17
- 0.7.5 — 2020-06-13
- 0.7.4 — 2020-06-12
- 0.7.3 — 2020-06-10
- 0.7.2 — 2020-06-09
- … 17 more at https://npm.io/package/ldap-graphql/versions

## README

# Graphql binding for LDAP server

### Goal

Battery included, Schema-aware binding between LDAP and Graphql

### How to use it

```ts
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](https://saostad.github.io/ldap-graphql/schema)

[Module Code Docs](https://saostad.github.io/ldap-graphql)

### 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

---
_Source: https://npm.io/package/ldap-graphql · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
