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
- Host: GitHub
- URL: https://github.com/saostad/ldap-graphql
- Owner: saostad
- Created: 2020-04-26T04:01:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-17T00:11:20.000Z (almost 3 years ago)
- Last Synced: 2024-11-14T17:47:42.139Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 3.97 MB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-list - ldap-graphql
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