Closed Exxou closed 2 years ago
I want to set up the ldap_sync with my Active Directory LDAP. Here's my config.toml:`
vaultwarden_url = "https://URL" vaultwarden_admin_token = "admin" ldap_host = "<FQDN of my Domain Controller" ldap_scheme = "ldap" ldap_port = "389" ldap_bind_dn = "<R/O User credits>" ldap_bind_password = "" ldap_search_base_dn = "" ldap_search_filter = "(&(objectClass=*)(uid=*))" ldap_sync_interval_seconds = 10
when I run the Container the logs of the ldap_sync show this:
Failed to parse config file at /config.toml thread 'main' panicked at 'Error parsing config from env: missing value for field vaultwarden_url', src/config.rs:29:29 stack backtrace: 0: 0x556e40748715 - backtrace::backtrace::libunwind::trace::h14d338b30b3ea0a7 at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/libunwind.rs:86 1: 0x556e40748715 - backtrace::backtrace::trace_unsynchronized::h73ea91d74a3fd67f at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/mod.rs:66 2: 0x556e40748715 - std::sys_common::backtrace::_print_fmt::hd42948c952866e12 at src/libstd/sys_common/backtrace.rs:78 3: 0x556e40748715 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::ha8f928866ff7571e at src/libstd/sys_common/backtrace.rs:59 4: 0x556e4076e99c - core::fmt::write::he0c1e5f7426d2718 at src/libcore/fmt/mod.rs:1076 5: 0x556e407426f2 - std::io::Write::write_fmt::hf3afc6cfd57d0033 at src/libstd/io/mod.rs:1537 6: 0x556e4074ada0 - std::sys_common::backtrace::_print::hfc0110703f3696fd at src/libstd/sys_common/backtrace.rs:62 7: 0x556e4074ada0 - std::sys_common::backtrace::print::h3f77c6990ddfaa22 at src/libstd/sys_common/backtrace.rs:49 8: 0x556e4074ada0 - std::panicking::default_hook::{{closure}}::heae49580a8d62d75 at src/libstd/panicking.rs:198 9: 0x556e4074aaec - std::panicking::default_hook::hecc34e3f729e213c at src/libstd/panicking.rs:217 10: 0x556e4074b3e3 - std::panicking::rust_panic_with_hook::he82f5d0644692441 at src/libstd/panicking.rs:526 11: 0x556e4074afdb - rust_begin_unwind at src/libstd/panicking.rs:437 12: 0x556e4074af4b - std::panicking::begin_panic_fmt::h905a6d44880d49ef at src/libstd/panicking.rs:391 13: 0x556e404e3a1b - vaultwarden_ldap::main::hd0fded3a5f40a13f 14: 0x556e404ebab3 - std::rt::lang_start::{{closure}}::hcdfb4d27b90e3d4e 15: 0x556e4074b883 - std::rt::lang_start_internal::{{closure}}::h5d3ea623498f5f43 at src/libstd/rt.rs:52 16: 0x556e4074b883 - std::panicking::try::do_call::hac65e71be769a440 at src/libstd/panicking.rs:348 17: 0x556e4074b883 - std::panicking::try::hd4706e264bcf6712 at src/libstd/panicking.rs:325 18: 0x556e4074b883 - std::panic::catch_unwind::h948a0fb4a8b3ee82 at src/libstd/panic.rs:394 19: 0x556e4074b883 - std::rt::lang_start_internal::h72cc068ed2d0ac53 at src/libstd/rt.rs:51 20: 0x556e404e7162 - main 21: 0x7fea02f8209b - __libc_start_main 22: 0x556e404da19a - _start 23: 0x0 - <unknown>
Hope someone can help...
Update: Fixed this with ignoring the config.toml and configuring the Vaules in the docker-compose.yml itself. Works fine now!
I want to set up the ldap_sync with my Active Directory LDAP. Here's my config.toml:`
when I run the Container the logs of the ldap_sync show this:
Hope someone can help...