go-ldap2json

command module
v0.0.0-...-fae1167 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2017 License: GPL-3.0 Imports: 6 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL