a minimal nestjs example of how to connect to ldap c3 5.0 server
run this project inside c3 5.0 with a ldap user mario:root
this project notes are in
- Boostnote Samba / LDAP
- and in project
$ npm i
# development
$ yarn run start
# watch mode
$ yarn run start:dev
test User AG Way
# test user auth in shell
$ /usr/lib/squid/basic_ldap_auth -h 127.0.0.1 -D cn=administrator,cn=users,dc=c3edu,dc=online -W /etc/ldap.password -s sub -b dc=c3edu,dc=online -f '(samaccountname=%s)'
# now type user and pass
mario root
OK
using a ldap user mario:root credentials
$ curl -X POST http://localhost:3000/ldap -d '{"username": "mario", "password": "root"}' -H "Content-Type: application/json"