An open API service indexing awesome lists of open source software.

https://github.com/saostad/ldap-graphql

Graphql binding for LDAP server
https://github.com/saostad/ldap-graphql

Last synced: 5 months ago
JSON representation

Graphql binding for LDAP server

Awesome Lists containing this project

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