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
- Host: GitHub
- URL: https://github.com/jongwooo/openldap-server-example
- Owner: jongwooo
- License: mit
- Created: 2022-08-02T14:54:55.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-10T00:09:36.000Z (over 3 years ago)
- Last Synced: 2025-08-02T06:35:35.206Z (11 months ago)
- Topics: ldap, ldap-authentication
- Language: Shell
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).