From ed07ecfcd3a9b37f9d38c57013d2feca41c509af Mon Sep 17 00:00:00 2001 From: Mika Bomm Date: Tue, 1 Apr 2025 12:16:29 +0200 Subject: [PATCH] WIP fix ldap crate --- .env.example | 2 ++ crates/ldap/Cargo.toml | 4 ++-- dev-compose.yml | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index fe63267..f5dd62b 100644 --- a/.env.example +++ b/.env.example @@ -12,3 +12,5 @@ REDIS_HOST= REDIS_PORT= SECRET_KEY= +# LDAP section +LDAP_ADMIN_PASSWORD= \ No newline at end of file diff --git a/crates/ldap/Cargo.toml b/crates/ldap/Cargo.toml index a17c944..2547ce6 100644 --- a/crates/ldap/Cargo.toml +++ b/crates/ldap/Cargo.toml @@ -6,7 +6,7 @@ edition = { workspace = true } [dependencies] actix-web = "4" serde = { version = "1", features = ["derive"] } -ldap3 = "0.10" +ldap3 = "0.11" tokio = { version = "1", features = ["full"] } -env_logger = "0.10" +env_logger = "0.11" log = "0.4" diff --git a/dev-compose.yml b/dev-compose.yml index 2b09296..cf84951 100644 --- a/dev-compose.yml +++ b/dev-compose.yml @@ -36,7 +36,8 @@ services: volumes: - openldap_data:/var/lib/ldap - 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: test: ["CMD", "ldapsearch", "-x", "-H", "ldap://localhost", "-b", "dc=Schule,dc=intern"]