Code Monkey home page Code Monkey logo

keycloak2ldap's Introduction

keycloak2ldap

This is a simple proxy meant to connect tools with ldap support to keyclaok.

Usage

If your client id in keycloak is sentry your bindDN will be:

cn=sentry, ou=services, o=company, dc=company, dc=de

The bindPassword is the clients secret key.

The searchDN will be:

ou=users, o=company, dc=company, dc=de

Config

{
  port: 1389,
  log: {
    name: 'keycloak2ldap',
    level: 'info'
  },
  usersDn: 'ou=users, o=company, dc=group, dc=de',
  servicesDn: 'ou=services, o=company, dc=group, dc=de',
  keycloak: {
    auth: {
      tokenHost: 'http://keycloak-url',
      tokenPath: '/auth/realms/master/protocol/openid-connect/token',
      authorizePath: '/auth/realms/master/protocol/openid-connect/auth'
    }
  },
  apiUser: {
    username: 'ldap-api',
    password: 'ldap-api-user-password'
  }
}

apiUser needs to be a keycloak user with the View-Users Role.

keycloak:auth:tokenHost needs to be the URL of your Keycloak instance.

Use with Docker

  1. docker build -t keycloak2ldap .
  2. docker run -it --name keycloak2ldap keycloak2ldap

All configuration variables can be overwriten using env variables eg. -e port=1234 -e log:level=debug

keycloak2ldap's People

Contributors

michaelermer avatar

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.