go-ldapjson
go-ldapjson is a API gateway that will give a easy and JSON based access to authenticate user against LDAP.
To support our development, please take a small donation.
How to run
LDAP_USER and LDAP_PASSWORD is the user to use LDAP not to authenticate against.
go run init.go API_SERVERPORT=8888 LDAP_SERVER=localhost:1389 BASE="ou=users, o=company" LDAP_USER= LDAP_PASSWORD=
How to use by curl
curl -X POST -d '{"USERNAME":"dieter"}' http://127.0.0.1:10777/api/v0/getUser
LDAP Test Server
To use the LDAP testserver, to the following steps. It important that you already have installed npm, nodejs and git. :-)
cd test_server
git clone https://github.com/mcavage/node-ldapjs.git ldapjs
cd ldapjs
npm install
cd ..
node ldapserver.js