WIP fix ldap crate

This commit is contained in:
Mika Bomm 2025-04-01 12:16:29 +02:00
parent 3fecf86fd3
commit ed07ecfcd3
3 changed files with 6 additions and 3 deletions

View file

@ -12,3 +12,5 @@ REDIS_HOST=
REDIS_PORT= REDIS_PORT=
SECRET_KEY= SECRET_KEY=
# LDAP section
LDAP_ADMIN_PASSWORD=

View file

@ -6,7 +6,7 @@ edition = { workspace = true }
[dependencies] [dependencies]
actix-web = "4" actix-web = "4"
serde = { version = "1", features = ["derive"] } serde = { version = "1", features = ["derive"] }
ldap3 = "0.10" ldap3 = "0.11"
tokio = { version = "1", features = ["full"] } tokio = { version = "1", features = ["full"] }
env_logger = "0.10" env_logger = "0.11"
log = "0.4" log = "0.4"

View file

@ -36,7 +36,8 @@ services:
volumes: volumes:
- openldap_data:/var/lib/ldap - openldap_data:/var/lib/ldap
- openldap_config:/etc/ldap/slapd.d - openldap_config:/etc/ldap/slapd.d
- users.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/users.ldif # Custom LDAP configuration
- ./crates/ldap/src/users.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/users.ldif
healthcheck: healthcheck:
test: ["CMD", "ldapsearch", "-x", "-H", "ldap://localhost", "-b", "dc=Schule,dc=intern"] test: ["CMD", "ldapsearch", "-x", "-H", "ldap://localhost", "-b", "dc=Schule,dc=intern"]