Lightweight identity and authorization management software
Find a file
2020-09-03 17:55:02 +02:00
docker LDAP tree refactoring 2020-09-03 17:19:41 +02:00
oidc_ldap_bridge Sentry captures alose initialization errors 2020-09-03 17:55:02 +02:00
schemas Code challenge unit tests 2020-08-25 15:28:13 +02:00
tests Avoid to initialize users 2020-09-03 17:49:08 +02:00
.coveralls.yml Fixed coveralls 2020-08-19 13:51:51 +02:00
.gitignore Packaging 2020-08-31 11:23:50 +02:00
.gitlab-ci.yml coveralls 2020-08-19 09:24:07 +02:00
docker-compose.yml tests workflow 2020-08-18 17:39:34 +02:00
LICENSE.md License 2020-08-19 13:50:12 +02:00
MANIFEST.in Packaging 2020-08-31 11:23:50 +02:00
README.md readme 2020-08-31 14:10:32 +02:00
setup.cfg Sentry support 2020-09-01 17:27:56 +02:00
setup.py setup.cfg instead of requirements.txt 2020-08-19 11:45:02 +02:00
TODO.md TODO 2020-09-01 17:45:51 +02:00

⚠ OpenID Connect LDAP Bridge is under development. Do not use in production yet. ⚠

OpenID Connect LDAP Bridge

oidc-ldap-bridge is a simple OpenID Connect provider based upon OpenLDAP.

It aims to be very light, simple to install and simple to maintain. Its main features are :

  • OAuth/OpenID Connect support;
  • Authentication against a LDAP directory;
  • No additional database required. Everything is stored in your OpenLDAP server;
  • The code is easy to read and easy to edit in case you want to write a patch.

Install

First you need to install the schemas into your LDAP server. There are several ways to achieve this:

LDAP schemas

Option 1: Add the schema into your filesystem

test -d /etc/openldap/schema && sudo cp schema/* /etc/openldap/schema
test -d /etc/ldap/schema && sudo cp schema/* /etc/ldap/schema
sudo service slapd restart

Option 2: Use slapadd

sudo slapadd -n0 -l schema/*.ldif

Web interface

Then you can deploy the code either by copying the git repository or installing the pip package:

pip install oidc_ldap_bridge

Finally you have to run the website in a WSGI server:

pip install gunicorn
gunicorn "oidc_ldap_bridge:create_app()"

Contribute

Contributions are welcome! To run the tests, you just need to run tox.

To try a development environment, you can run the docker image and then open https://127.0.0.1:5000

cp oidc_ldap_bridge/conf/config.sample.toml oidc_ldap_bridge/conf/config.toml
cp oidc_ldap_bridge/conf/oauth-authorization-server.sample.json oidc_ldap_bridge/conf/oauth-authorization-server.json
cp oidc_ldap_bridge/conf/openid-configuration.sample.json oidc_ldap_bridge/conf/openid-configuration.json
docker-compose up