Skip to content

AVENTER-UG/go-ldap2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-ldapjson

Build Status

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. Donate

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

About

LDAP API to use with JSON Calls

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published