24 lines
710 B
Markdown
24 lines
710 B
Markdown
## Prérequis:
|
|
|
|
un serveur ldap de base
|
|
|
|
fichier change_suffix_and_dit_admin.ldif
|
|
|
|
schemas cosine.ldif core.ldif nis.ldif et inetorgperson.ldif
|
|
|
|
fichier root.ldif
|
|
|
|
# Préparation
|
|
|
|
Il est possible d'avoir un serveur ldap en cours de fonctionnement très rapidement:
|
|
|
|
```bash
|
|
sudo dnf install podman
|
|
sudo systemctl enable --now podman
|
|
sudo podman run -p 389:389 --name openldap-server --uts=private --hostname=localhost \
|
|
--env LDAP_ORGANISATION="example" --env LDAP_DOMAIN="example.fr" \
|
|
--env LDAP_ADMIN_PASSWORD="admin" --env LDAP_TLS=false \
|
|
--env LDAP_BASE_DN="cn=admin,dc=example,dc=fr" -d osixia/openldap:latest
|
|
ldapadd -H ldap://localhost:389 -x -f data.ldif -D cn=admin,dc=example,dc=fr -wadmin -c
|
|
```
|