add phpldapadmin

This commit is contained in:
Gilles Mouchet 2025-01-01 10:47:42 +01:00
parent 05bfb1daa5
commit 7ef8b350c9

View File

@ -1,7 +1,7 @@
# Openldap
## Description
This docker compose install openldap container
This docker compose install openldap and phpldadmin container
## Requierments
### Folder
@ -22,6 +22,10 @@ sudo chown 1001 /home/docker/openldap -R
```
1001 is important because the container is running with user no-root
### Configuration
- Copy `.openldap.env.dist` to `.openldap.env`. Edit the `.env` file and set the parameters according to your configuration.
- Copy `.phpldapadmin.env.dist` to `.phpldapadmin.env`. Edit the `.env` file and set the parameters according to your configuration.
## Delete Directory
ATTENTION. The command below delete the entire directory.
This is useful when you want to test configs (problems with certificates)
@ -39,6 +43,10 @@ Initialize the openldap ditectory
```bash
./ldap-init.sh
```
## PhpLdapAdmin
`https://<server_fqdn>:8443`
## LDAP commands
* Get all entry in directory
```bash
@ -58,9 +66,13 @@ docker exec ldap /bin/bash -c "ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn
```
## Sources
[Bitnami Openldap](https://hub.docker.com/r/bitnami/openldap)
- [Bitnami Openldap](https://hub.docker.com/r/bitnami/openldap)
- [Osixia PhpLdapAdmin](https://github.com/osixia/docker-phpLDAPadmin?tab=readme-ov-file#quick-start)
## Changelog
### v1.1 - 2024-12-30
#### Added
- phpldapadmin
### v1.0 - 2024-12-29
#### Added
- initial version by [GMo](mailto:gilles.mouchet@gmail.com)