Giter VIP home page Giter VIP logo

ldap-proxy's Introduction

ldap-proxy

A proxy delegating ldap requests to backends.

The goal of this project is to make other forms of authentication available to the ldap protocol and combine multiple datasources into one.

Getting Started

To get started, build the app with go build and start the proxy with ./ldap-proxy porxy. The the proxy loads the configuration by default from a file named config.json. You can change the file used for configuration using the flag --filename <config-file.json>.

Some examples can be found in examples.

Backends

Backends must implement the pkg.BackendFactory and must register themselves with config.Loader.AddFactory(pkg.BackendFactory).

The base configuration has the following keys:

  • name: The name of the backend. This is only used for display and logging.
  • baseDn: the base dn for this backend.
  • peopleRdn: the rdn for users
  • userRdnAttribute: the rdn attribute of a single user

in-memory

The in-memory backend allows to define users in the configuration file. This backend should be used to setup application users to authenticate for searching real users

Options:

  • listUsers: weather to list the users during search
  • users: a list of all the users
    • name: the name of the users
    • password: a bcrypt protected password like $2a$12$ti1w7IG6I1hsyVcv/C2Z9OvX/DnG8ldHYQm1jqfN38q2GtSZW0NvG

postgres

The postgres backend connects to a database using the postgres protocoll (postgres or cockroachdb) and uses sql to authenticate and query users.

Options:

  • url: the url to the postgres server (or cockroach) e. g. postgres://test:test@localhost:26257/auth?sslmode=disable
  • columns: the db columns and their ldap attribute names. The key represents the db column name, the value the ldap attribute name.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.