https://github.com/lldap/lldap logo
jensen - Hm, if I try to provide the serverkey ...
# troubleshooting
j
Hm, if I try to provide the server_key file through either the conf key "server_key_file" or the env var "LLDAP_SERVER_KEY_FILE", I get the following error on startup: `lldap-start[2672]: Error: Could not open
/run/secrets/lldap-server-key
from config value `server_key_file`: stream did not contain valid UTF-8 in /nix/store/a92szmxz1iqgqk3hlsvg26np5wxhr0vj-lldap_config.toml TOML file` The file is binary data, generated by lldap itself previously. Isn't it incorrect to check if it's valid UTF8?
a
message has been deleted
n
It's
key_file
in the config
Or
LLDAP_KEY_FILE
j
Oh, right, let me try that right away
n
Although, yeah, LLDAP_SERVER_KEY_FILE should technically work too
j
i'll try the conf then 🙂
that env var also gave me that UTF8 error
n
Lldap_key_file?
j
LLDAP_SERVER_KEY_FILE
n
Yeah, I'm not sure why
j
key_file in the conf works 👍 thanks!
n
Great 🙂
j
Would you like me to try LLDAP_KEY_FILE as well?
n
Yes please!
j
Sure, one sec
Also works for me 👍
I see where I made the mistake, I was looking in cli.rs, and not configuration.rs
n
Great 🙂 I'll leave it at that, since that's what's in the docs
j
Makes sense 🙂
n
The best place and most readable one is the config template
j
Ah right, have completely forgotten about that
Thanks for the help!
n
No problem!
2 Views