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

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

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"
}
}
```