https://github.com/gmoqa/node-ldap-example
Node.js + Express + LDAP basic example
https://github.com/gmoqa/node-ldap-example
Last synced: about 1 month ago
JSON representation
Node.js + Express + LDAP basic example
- Host: GitHub
- URL: https://github.com/gmoqa/node-ldap-example
- Owner: gmoqa
- Created: 2020-07-06T19:19:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-05T04:25:50.000Z (over 3 years ago)
- Last Synced: 2025-01-14T10:24:51.112Z (over 1 year ago)
- Language: JavaScript
- Size: 51.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node.js LDAP Example
## Run
```bash
$ npm install
$ npm start
```
## Test
POST -> localhost:3000/login
```json
{
"username": "riemann",
"password": "password"
}
```
### Response
```json
{
"status": "ok",
"user": {
"dn": "uid=riemann,dc=example,dc=com",
"controls": [],
"objectClass": [
"inetOrgPerson",
"organizationalPerson",
"person",
"top"
],
"cn": "Bernhard Riemann",
"sn": "Riemann",
"uid": "riemann",
"mail": "riemann@ldap.forumsys.com"
}
}
```