dpb

command module
v0.0.0-...-20a5c20 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: BSD-3-Clause Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

dpb

HTTP proxy for doing LDAP search requests

Usage of ./dpb:
  -apiKeyFile string
    	Path to api key file. (default "./apikeys.txt")
  -baseDN string
    	Base DN for search requests. (default "ou=People,dc=example,dc=edu")
  -ldapURI string
    	Full uri path to ldap server for lookups. (default "ldaps://ldap-server.example.edu")
  -port string
    	Port number to listen on (default "9090")

API Key file format example

# Comment: Cosmo's key on the line below...
li2u3fn394nrwviabgnap9b789hp39aynpr9

Sending requests

Requests must be sent with a valid x-api-key header. The server accepts POST requests with json in the shape below:

{
    "filter": "(|(uid=cosmo)(uid=sammy))",
    "attributeNames": [
        "cn",
        "title",
        "mail",
        "telephoneNumber"
    ]
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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