nestjs-passport-ldap-example icon indicating copy to clipboard operation
nestjs-passport-ldap-example copied to clipboard

NestJS Passport LDAP example

trafficstars

Nest Logo

Description

Nest framework with LDAP Passport authentication example.
Created by Simon Brännström.

Installation

yarn

Running the app (in development mode)

yarn run start

Example LDAP lookup

curl --request POST \
 --url http://localhost:3000/ldap \
 --header 'Content-Type: application/json' \
 --data '{"username": "gauss", "password": "password"}'

Example response

{"dn":"uid=gauss,dc=example,dc=com","controls":[],"objectClass":["inetOrgPerson","organizationalPerson","person","top"],"cn":"Carl Friedrich Gauss","sn":"Gauss","uid":"gauss","mail":"[email protected]"}
# watch mode
$ yarn run start:dev

Author

Created by Simon Brännström January 2020.

License

Nest is MIT licensed.