Skip to content

do4-2022/ldap-sso

Repository files navigation

LDAP SSO

Description

This repository provides pre-configured Docker Compose files to set up GitLab and OpenLDAP in a way that allows GitLab to fetch users stored in OpenLDAP. It offers two different configurations: one that uses Keycloak as an intermediary between GitLab and OpenLDAP, and another that establishes a direct connection between GitLab and OpenLDAP. Everything is set up to be launched with a single command.

Direct Connection

Gitlab and OpenLDAP without Keycloak

Keycloak Intermediary

Gitlab and OpenLDAP with Keycloak

Quick Start

Without Keycloak

To launch the services without Keycloak, run the following command:

$ docker compose -f dc-no-keycloak.yaml up -d

With Keycloak

To launch the services with Keycloak as an intermediary, run the following command:

$ docker compose -f dc-with-keycloak.yaml up -d

Usage

URLs

OpenLDAP url (unsecure): ldap://localhost:1389

Keycloak url: http://localhost:8080

GitLab url: http://localhost

Credentials

OpenLDAP admin credentials: cn=admin,dc=example,dc=org / secret

Keycloak admin credentials: admin / secret

Features

  • Direct Connection: Provides a Docker Compose configuration for a direct connection between GitLab and OpenLDAP.
  • Keycloak Intermediary: Provides an alternative Docker Compose configuration that uses Keycloak as an intermediary between GitLab and OpenLDAP.
  • Pre-configured: No additional setup required. Just run the Docker Compose command to get everything up and running.

Requirements

  • Docker
  • Docker Compose

Configuration

Both Docker Compose files are pre-configured, so no additional setup is required. However, you can customize the configurations as per your requirements.

Contributing

Feel free to submit issues and enhancement requests.

License

MIT License. See LICENSE for more information.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •