An open API service indexing awesome lists of open source software.

https://github.com/jongwooo/openldap-server-example

Setup and Configure OpenLDAP using Docker
https://github.com/jongwooo/openldap-server-example

ldap ldap-authentication

Last synced: 4 months ago
JSON representation

Setup and Configure OpenLDAP using Docker

Awesome Lists containing this project

README

          

# OpenLDAP Server

Setup and Configure OpenLDAP using Docker.

## What is OpenLDAP?

[OpenLDAP](https://www.openldap.org/) is the open-source solution for LDAP (Lightweight Directory Access Protocol). It is a protocol used to store and retrieve data from a hierarchical directory structure such as in databases.

## Quick Start

Create a new `.env` file in project root directory.

```bash
touch .env
```

Add environment variables to `.env` file.

```bash
# Timezone
TZ=

# LDAP Configuration
LDAP_ORGANISATION=
LDAP_DOMAIN=
LDAP_ADMIN_USERNAME=
LDAP_ADMIN_PASSWORD=
LDAP_CONFIG_PASSWORD=
```

You can start the containers with the `up` command in daemon mode (by adding `-d` as an argument) or by using the `start` command:

```bash
docker-compose up -d
```

You can also visit [https://127.0.0.1:8443](https://127.0.0.1:8443) to access [phpLDAPadmin](http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page) after starting the containers.

### Authentication

- Login DN: `cn=,dc=,dc=`
- Password: ``

## License

Licensed under the [MIT License](LICENSE).